Error executing Quant in MAC OSX with java vera 7 update 60

20 views
Skip to first unread message

francisco.sal...@gmail.com

unread,
Jun 3, 2014, 6:39:55 PM6/3/14
to tbg-quant...@googlegroups.com
hi
I’m new to this Quant package. I tried to execute ToM_Strategy, as reccomended in the program guide, but I got this:


Exception in thread "main" java.lang.UnsupportedClassVersionError: examples/ToM/ToM_Strategy :
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)

do any of you tried to execute it on a Mac with success?

thanks

Fran

Alberto Sfolcini

unread,
Jun 4, 2014, 2:57:53 AM6/4/14
to tbg-Quant-community

Hello,
Are u sure you are running java 7 as a system java? Can you try to type java -version before calling ToM stratrgy? And report me the result? Thank you
Ps: I tried it on Mac and no issues.
Bye

--
www.thebonnotgang.com
---
You received this message because you are subscribed to the Google Groups "tbg-Quant-community" group.
To post to this group, send email to tbg-quant...@googlegroups.com.

francisco.sal...@gmail.com

unread,
Jun 4, 2014, 4:59:44 AM6/4/14
to tbg-quant...@googlegroups.com, francisco.sal...@gmail.com
I did an update to the java runtime and it verified as Java version 7 update 60. But using the command java -version on the terminal this is what says:


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)

Going to my System preferences Java runtime says 1.7.0_60
so I’m a bit confused. I guess that my csh terminal uses a different java version( ?).
Actually I’m trying to solve this incongruency.

francisco.sal...@gmail.com

unread,
Jun 4, 2014, 5:35:39 AM6/4/14
to tbg-quant...@googlegroups.com, francisco.sal...@gmail.com


SOLVED!

The problem was the update of the java plugin doesn’t update system Java. In order to do this we have to download the most recent JDK

http://www.oracle.com/technetwork/java/javase/downloads/index.html

now it shows:

java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)


If still doesn’t work, follow the instructions at

http://www.monkehworks.com/set-java-7-as-default-jvm-on-mac-osx-mountain-lion

regards and thank you for pointing me the origin of the problem.

Reply all
Reply to author
Forward
0 new messages