yccheok / jstock

JStock is a free stock market software for 28 countries.
https://jstock.org
664 stars 348 forks source link

Jstock fails to start on Arch Linux #59

Closed gozes closed 8 years ago

gozes commented 8 years ago

after downloading, chmod +x and running jstock.sh I get the following error

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/yccheok/jstock/gui/JStock : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

yccheok commented 8 years ago

Please kindly use Java 8 https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html

gozes commented 8 years ago

I am using java 8 from the arch repo

yccheok commented 8 years ago

Can you type java -version? I wish to see your output. Mine is

java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

gozes commented 8 years ago

openjdk version "1.8.0_66" OpenJDK Runtime Environment (build 1.8.0_66-b17) OpenJDK 64-Bit Server VM (build 25.66-b17, mixed mode)

yccheok commented 8 years ago

Please use Java 8 from Oracle.