Compiling AnimCube for Mac?

Lucas Garron

Premium Member
Joined
Jul 6, 2007
Messages
3,757
Location
California
WCA ID
2006GARR01
YouTube
Visit Channel
A while ago, I created a hacked version of AnimCube that had keyboard commands. It's used here. It compiles/runs fine in Windows, but it doesn't load on my Mac.

So, I started over, with Jelinek's original source code, using the following steps:

1) Download http://software.rubikscube.info/AnimCube/AnimCube.java.
2) Open a Terminal window in the folder of AnimCube.java
3) "javac AnimCube.java" -> AnimCube.class is created.
4) "jar cvf AnimCube.jar AnimCube.class" -> AnimCube.jar is created.

Jelinek's jar file loads like this on both my Mac and Windows.
My jar file of his source code (compiled on Mac) fails to load and looks like this on my Mac.

In case it could be of use, my compiled class file is here.
It appears to be an issue with the way jar files are read/used on my Mac, but somehow Josef's compiler avoided the issue (in addition to being more compressed).

Does anyone know what would be causing this, and how I might fix it?

(And if anyone is getting different results on a Mac, could you let me know?)
 
Hmm, -source 1.4 seems to work. I had tried both that and -target 1.4, with some positive results, but it seemed like a hack.

Nevertheless, it seems to work now, and I'm not complaining. Thanks. :)
(And I didn't even have to change the pref. I can't expect others to do that.)

In case anyone wants to see why I was trying to compile an applet, it was for reconstructions. It should definitely work on Jean's 11.75.

(Try Esc, space, left, right...)
 
Back
Top