Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script "run_example.sh" not working. #2

Open
felipelageduarte opened this issue Oct 23, 2012 · 1 comment
Open

Script "run_example.sh" not working. #2

felipelageduarte opened this issue Oct 23, 2012 · 1 comment

Comments

@felipelageduarte
Copy link

I just grab the source code from git repository. I tried to run the script and got the following error

~/hist4j$ ./run_example.sh
Buildfile: /home/felipelageduarte/hist4j/build.xml

prepare:
[delete] Deleting directory /home/felipelageduarte/hist4j/output
[mkdir] Created dir: /home/felipelageduarte/hist4j/output

compile:
[javac] /home/felipelageduarte/hist4j/build.xml:52: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to /home/felipelageduarte/hist4j/build

jar:
[jar] Building jar: /home/felipelageduarte/hist4j/output/hist4j-trunk.jar

BUILD SUCCESSFUL
Total time: 0 seconds
Exception in thread "main" java.lang.UnsupportedClassVersionError: Hist4jExample : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: Hist4jExample. Program will exit.

Could anyone please help me and fix the script?

@jhandl
Copy link
Member

jhandl commented Oct 23, 2012

After a quick google search, this seems to be related to the version of the JVM you have installed. The recommended fix is to install the latest JVM.
Jorge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants