[SOLVED] Not starting on MacOSX

Forum is for miscellaneous user help requests.

[SOLVED] Not starting on MacOSX

Postby Jean-Pitre » Thu May 15, 2014 1:54 am

Hi all!

Though I followed the guide on how to turn it for mac (http://www.wandora.org/wiki/Tuning_Wandora_for_Mac_OS) I can't seem to be able to start Wandora.

Here's the message I get:
Code: Select all
*****************************************************
***  WANDORA - KNOWLEDGE MANAGEMENT ENVIRONMENT   ***
***     Copyright (C) 2004-2014 Wandora Team      ***
***              http://wandora.org               ***
*****************************************************
Xms750m Xmx1000m
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/wandora/application/Wandora : 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)
logout

[Process completed]


Just in case, java -version gives this
Code: Select all
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)


Any idea?

Thanks!
Last edited by Jean-Pitre on Fri May 16, 2014 3:07 pm, edited 1 time in total.
Jean-Pitre
 
Posts: 3
Joined: Thu May 15, 2014 1:48 am

Re: Not starting on MacOSX

Postby akivela » Thu May 15, 2014 12:27 pm

Hi Jean-Pitre

I suggest you update your Java version to 1.7 [1].

However, don't update to Java 1.8 since we haven't tested Wandora works with it. Actually, I know that at least the Gate Annie extractor doesn't work with Java 1.8.

Kind Regards,
Aki / Wandora Team

[1] http://www.java.com/en/download/faq/jav ... ml#getjava
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: Not starting on MacOSX

Postby Jean-Pitre » Thu May 15, 2014 6:14 pm

Hi Aki,

Thank you so much for your reply!

I tried the solution you suggested, but still no luck...
http://www.java.com/verify/ says:
You have the recommended Java installed (Version 7 Update 55)
which I believe tells me that I'm up to date with version 1.7, right?

Thanks again for your help!
Jean-Pitre
 
Posts: 3
Joined: Thu May 15, 2014 1:48 am

Re: Not starting on MacOSX

Postby akivela » Fri May 16, 2014 12:23 pm

Hi Jean-Pitre

Had to try myself to sort this out. It looks like you need to install JDK 1.7 instead of JRE. The JRE doesn't actually change the default Java version in OSX. The Java 1.6 remains as a default Java version after JRE installation. Thus, download Java SE Development Kit 7 from

http://www.oracle.com/technetwork/java/ ... 80260.html

Once you have installed the JDK, start Terminal in your OSX and check the default Java version using command

Code: Select all
java -version


If the version is 1.7, we have succeeded to install Java 1.7 and you can start using Wandora application. (The Webview panel doesn't work though. I'll write about fixing the Webview in the very bottom of this post).

If the Java version is still 1.6, we'll have change Java's symbolic link manually. OSX has a symbolic link folder at /user/bin/java which points to the real Java installation directory. You have to update this symbolic link to point the Java version 1.7 you just installed. Your Java 1.7 sits probably in folder /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk. To be precise:

Code: Select all
sudo rm /usr/bin/java
sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/bin/java /usr/bin/java


Now you can try the default Java version again. It should be 1.7.

If you want to read more about Java 7 and OSX, check next tutorial:
http://www.cc.gatech.edu/~simpkins/teac ... acosx.html

As I wrote above, the Webview panel doesn't work as JavaFX has not been added to Java's classpath. To fix the problem, edit file SetClasspath.sh in Wandora's bin folder:

Code: Select all
nano SetClasspath.sh


and change the last row saying

Code: Select all
WANDORACLASSES=$WANDORACLASSES:/usr/jdk/jre/lib/jfxrt.jar


to

Code: Select all
WANDORACLASSES=$WANDORACLASSES:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre/lib/jfxrt.jar


Now the Wandora finds proper library for the JavaFX and the Webview panel should work too.

Kind Regards,
Aki / Wandora Team
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: Not starting on MacOSX

Postby Jean-Pitre » Fri May 16, 2014 3:06 pm

Installing the JDK 1.7 as you suggested solved the issue!

Thank you very much for your help!
Jean-Pitre
 
Posts: 3
Joined: Thu May 15, 2014 1:48 am


Return to How to... and problems

Who is online

Users browsing this forum: No registered users and 1 guest