openjdk - java.lang.UnsupportedClassVersionError: com/crawljax/cli/JarRunner : Unsupported major.minor version 51.0 -
i have downloaded program:
wget https://github.com/crawljax/crawljax/releases/download/crawljax-3.6/crawljax-cli-3.6.zip
unzip it:
unzip crawljax-cli-3.6.zip
get in folder , run:
java -jar crawljax-cli-3.6.jar
this error get:
java -jar crawljax-cli-3.6.jar exception in thread "main" java.lang.unsupportedclassversionerror: com/crawljax/cli/jarrunner : unsupported major.minor version 51.0 @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:643) @ java.security.secureclassloader.defineclass(secureclassloader.java:142) @ java.net.urlclassloader.defineclass(urlclassloader.java:277) @ java.net.urlclassloader.access$000(urlclassloader.java:73) @ java.net.urlclassloader$1.run(urlclassloader.java:212) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:205) @ java.lang.classloader.loadclass(classloader.java:323) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:294) @ java.lang.classloader.loadclass(classloader.java:268) not find main class: com.crawljax.cli.jarrunner. program exit.
i have done this:
apt-get install default-jre apt-get install default-jdk
but same error
my version of java:
javac -version
javac 1.6.0_35
java -version
java version "1.6.0_35" openjdk runtime environment (icedtea6 1.13.7) (6b35-1.13.7-1~deb7u1) openjdk 64-bit server vm (build 23.25-b01, mixed mode)
i have read because have compiled higher version 1 executing on jvm, have no source code here recompile, have .jar.
as noted, attempting run jar compiled java 7 jre 6. install jre java 7:
apt-get install openjdk-7-jre apt-get install openjdk-7-jdk # measures
and set default jre:
update-alternatives --config java # , select java 7
Comments
Post a Comment