Hi all-
I just installed subtleGradient's Javascript Tools bundle and tried the "Validate with Google Closure Compiler" and got this:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:676) [snip] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
I'm not hugely Java-literate, but I surmise, using Leopard 10.5.8 here, that GCC wants Java version 6 here, and my Java preferences are set to 32-bit Java 5, and then 64-bit Java 6.
So can I run this with the Java 6 installed in Leopard? And can I alter subtleGradient's "lint-gcc.rb" to run Java 6 rather than setting my global preferences? How?
Many thanks in advance!
Charles
On Feb 6, 2010, at 7:22 AM, Charles Turner wrote:
So can I run this with the Java 6 installed in Leopard? And can I alter subtleGradient's "lint-gcc.rb" to run Java 6 rather than setting my global preferences? How?
Well, to answer my own question (probably crudely), in lint-gcc.rb:
$BINARY = "/System/Library/Frameworks/JavaVM.framework/Versions/ 1.6.0/Home/bin/java -jar '#{$SUPPORT}/bin/compiler.jar' -- warning_level VERBOSE"
But it works...
Best, Charles