Java error

33 views
Skip to first unread message

biggbest

unread,
Jul 7, 2014, 9:12:49 AM7/7/14
to hax-si...@googlegroups.com
I get an instant error while trying to launch any of the .sh :

$ sh hax-tutorial.sh

================================
=
= HAX_HOME = /Applications/Games/hax-1.00_alpha
=
================================

Exception in thread "main" java.lang.UnsupportedClassVersionError: sk/hax/application/Launcher : 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)


$ java -version

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)


Java version updated: version 7, update 60.

biggbest

unread,
Jul 7, 2014, 12:27:00 PM7/7/14
to hax-si...@googlegroups.com
Issue fixed, by downloading and installing my-self the latest JDK and JRE.

Also, (I'm on a Mac) I add to manually replace the CurrentJDF link from /System/Library/Frameworks/JavaVM.framework/Versions/ to "refresh" the version from the terminal.

Hax Simulator

unread,
Jul 7, 2014, 5:45:24 PM7/7/14
to hax-si...@googlegroups.com
Hello and welcome to the group.
Nice to hear you got things sorted out. Indeed, Hax requires Java 7 or higher (JRE should be sufficient).
You are also the first person I know of running Hax on a Mac. I myself have no means to test it on a Mac, so I was not sure whether it would work.
Please post any other issues or oddities you encounter.
Cheers
Reply all
Reply to author
Forward
0 new messages