YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Discussion in English language.
Forumsregeln
You can start and continue with posts in english language in all other forums as well, but if you are looking for a forum to start a discussion in english, this is the right choice.

YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon nicolasd » Fr Jan 23, 2015 3:42 pm

I'm trying to run YaCy for the first time. I have Mac OSX 10.0.1 and Java 8 update 31 I get this error message on first launch.

"To view this web content, you need to install the Java Runtime Environment."

It would be very helpful to have the instructions to get this working included in a tutorial. I am unable to add "localhost:8090/index.html" to my site exceptions list because Java forbids me. I don't know what other Java settings I might change to allow YaCy to run. Can someone please help me? I'm sure there are many other Mac users that will have this same issue. Thank you all very much.
nicolasd
 
Beiträge: 3
Registriert: Fr Jan 23, 2015 3:35 pm

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon Orbiter » Fr Jan 23, 2015 6:00 pm

I just tried to run YaCy on Java 8 on my Mac (within the development environment) and I am surprised to see that YaCy does not work at all; it constantly generates memory problems.
What causes that the application wrapper does think that you don't have any java installed is a mystery; I try to find out what it causes.
Orbiter
 
Beiträge: 5787
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon nicolasd » Fr Jan 23, 2015 11:43 pm

Thank you for looking into it. I'd love to be able to use YaCy on my Mac.
nicolasd
 
Beiträge: 3
Registriert: Fr Jan 23, 2015 3:35 pm

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon vanzyla » Di Mär 03, 2015 3:00 pm

Hi, I have the same problem, has anybody found a solution yet? I have installed YaCy as per the instructions, but when I click on the app icon it loads briefly in the sidebar dock before disappearing. When I try to access through http://localhost:8090/index.html it gives a server not found error.

I run OS 10.9.5 and latest Java and have added "http://localhost:8090/index.html" in site exception list.

Any help will be appreciated, I am very keen to try YaCy!
vanzyla
 
Beiträge: 1
Registriert: Di Mär 03, 2015 2:28 pm

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon haigha » Di Mär 24, 2015 5:46 pm

Any updates on this? I am unable to use Yacy, on mac os x 10.9.5.

Download the .dmg. Drag Yacy to app folder. Double click to launch, Yacy icon shows up in dock then immediately disappears??

Thanks for help and time.
haigha
 
Beiträge: 3
Registriert: Di Mär 24, 2015 5:39 pm

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon Orbiter » Mi Mär 25, 2015 8:08 am

ok please do the following:
- download the tar.gz release version
- open terminal
- decompress the release with tar xf <release>
- cd into release
- run ./startYACY.sh -l
- post terminal output and content of yacy.log (in same folder)

The tar.gz version is exactly the same as inside the mac app, it's just encapsulated. So this test should tell us whats wrong with the java version you have.

Additionally you can run on the terminal
java -version
and post this here.
Orbiter
 
Beiträge: 5787
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon haigha » Mi Mär 25, 2015 9:46 pm

terminal output:

Franks-MacBook-Pro:yacy frank$ ./startYACY.sh -l
****************** YaCy Web Crawler/Indexer & Search Engine *******************
**** (C) by Michael Peter Christen, usage granted under the GPL Version 2 ****
**** USE AT YOUR OWN RISK! Project home and releases: http://yacy.net/ ****
** LOG of YaCy: DATA/LOG/yacy00.log (and yacy<xx>.log) **
** STOP YaCy: execute stopYACY.sh and wait some seconds **
** GET HELP for YaCy: see http://wiki.yacy.net and http://forum.yacy.de **
*******************************************************************************
>> YaCy started as daemon process. Administration at http://localhost:8090 <<
Franks-MacBook-Pro:yacy frank$ Exception in thread "main" java.lang.UnsupportedClassVersionError: net/yacy/yacy : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

yacy.log:

24/03/15 17:16:03,000 kernel[0]: hfs: mounted YaCy on device disk1s2
24/03/15 17:16:03,384 mds[62]: (Normal) Volume: volume:0x7fcf42066c00 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/YaCy
24/03/15 17:16:24,554 CoreServicesUIAgent[763]: Saving rejection record:
Rejected URL=file:///Applications/YaCy.app/
App URL=file:///Applications/YaCy.app/
24/03/15 17:16:24,559 com.apple.launchd.peruser.501[142]: ([0x0-0x40040].net.yacy.yacy[788]) Exited: Killed: 9
24/03/15 17:16:31,026 CoreServicesUIAgent[763]: Saving rejection record:
Rejected URL=file:///Applications/YaCy.app/
App URL=file:///Applications/YaCy.app/
24/03/15 17:16:31,034 com.apple.launchd.peruser.501[142]: ([0x0-0x41041].net.yacy.yacy[792]) Exited: Killed: 9
24/03/15 17:16:45,741 CoreServicesUIAgent[763]: Saving rejection record:
Rejected URL=file:///Applications/YaCy.app/
App URL=file:///Applications/YaCy.app/
24/03/15 17:16:45,750 com.apple.launchd.peruser.501[142]: ([0x0-0x42042].net.yacy.yacy[795]) Exited: Killed: 9
24/03/15 17:18:10,000 kernel[0]: hfs: unmount initiated on YaCy on device disk1s2
24/03/15 17:19:18,000 kernel[0]: hfs: mounted YaCy on device disk1s2
24/03/15 17:19:18,610 mds[62]: (Normal) Volume: volume:0x7fcf42064000 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/YaCy
24/03/15 17:23:10,000 kernel[0]: hfs: unmount initiated on YaCy on device disk1s2
24/03/15 17:25:49,000 kernel[0]: hfs: mounted YaCy on device disk1s2
24/03/15 17:25:49,153 mds[62]: (Normal) Volume: volume:0x7fcf41857000 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/YaCy
24/03/15 17:26:04,000 kernel[0]: hfs: unmount initiated on YaCy on device disk1s2
24/03/15 17:27:15,000 kernel[0]: hfs: mounted YaCy on device disk1s2
24/03/15 17:27:15,145 mds[62]: (Normal) Volume: volume:0x7fcf41857000 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/YaCy
24/03/15 17:27:25,000 kernel[0]: hfs: unmount initiated on YaCy on device disk1s2
24/03/15 17:35:48,000 kernel[0]: hfs: mounted YaCy on device disk1s2
24/03/15 17:35:48,151 mds[62]: (Normal) Volume: volume:0x7fcf42013e00 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/YaCy
24/03/15 19:16:39,000 kernel[0]: hfs: unmount initiated on YaCy on device disk1s2

Franks-MacBook-Pro:yacy frank$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)


**** I hope I got all that right for you, thank you for helping *****
haigha
 
Beiträge: 3
Registriert: Di Mär 24, 2015 5:39 pm

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon Orbiter » Sa Mär 28, 2015 6:46 pm

from this log output it is very easy to see the problem, you should be able to discover that yourself.

However: your Java Version is 1.6
YaCy needs 1.7

Ich recommend to deinstall your java and install the latest version, 1.7 or 1.8
Orbiter
 
Beiträge: 5787
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon haigha » Sa Mär 28, 2015 9:39 pm

as an average user this log output is all gibberish to me but thanks for the snarky response.

However, I would like to point out that on a mac with Java 6 installed it is very difficult to simply disable and re-enable Java 6, let alone delete it entirely, without Unix experience. Expert users may elect to delete key files to prevent Java 6 apps from ever running, but it's not a great idea for the average user without Unix and command line experience. It's better to be aware if you're running a native Java app, built for Java 6, and then keep Java 6 updated (with Software Update in OS X). Otherwise, find an alternative non-Java solution or do a complete fresh reinstall on my OS.

Yeah, OK. So in order to just even try out YaCy I have to do a clean reinstall. Good luck with that.
haigha
 
Beiträge: 3
Registriert: Di Mär 24, 2015 5:39 pm

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.10.1 Java 8u31

Beitragvon nicolasd » Do Apr 30, 2015 10:22 pm

Okay, I'm trying again. I'm running Mac OS X 10.10.3 Java 8u45

I am not a technical person, but I think I've found a solution for Mac users. When you install Java 8 from Oracle, it does not install any command line tools. YaCy needs those. So, Mac users must (additionally?) install the Java Development Kit or JDK. (Think of it like the Xcode for Java).

https://java.com/en/download/faq/develop.xml

I now have both the Java Runtime Environment (JRE) and JDK running the same version (Java 8, Update 45). No need to restart. YaCy launched for me right away.
nicolasd
 
Beiträge: 3
Registriert: Fr Jan 23, 2015 3:35 pm

Re: YaCy Mac 1.82 won't launch on Mac OSX 10.0.1 Java 8u31

Beitragvon Strapples » Fr Mai 08, 2015 1:11 pm

Interesting enough 1.80 will launch fine on my 10.9.5 machine here.

even with java 8u45 1.82 complains of the unsupported major.minor version 51 error
Strapples
 
Beiträge: 4
Registriert: Do Sep 04, 2014 7:33 pm


Zurück zu English

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste