java-native/jssc

Release jar 2.9.3 not compatible with jre6

pietrygamat opened this issue · 7 comments

Release jar 2.9.3 not compatible with jre6
tresf commented

Hmmm.. that may be my mistake. I wasn't paying close attention to the JDK version we used. I'll re-build it now and attach a copy here.

tresf commented

This one should be better. We built the binary using Homebrew's version of Maven, which ignores the default Java version of the system. Using JAVA_HOME, here's one that should be compatible with Java 6.

jssc-2.9.3.jar.zip

tresf commented

I've re-uploaded the release artifact: https://github.com/java-native/jssc/releases/tag/v2.9.3. Please feel to re-open if you believe this is closed in error. :)

That looks like a reference to this problem. I'll reopen.

tresf commented

That looks like a reference to this problem. I'll reopen.

Can you please explain? I don't understand how they are related?

tresf commented

Oh, I see the OP claims that the binaries were built with the wrong JDK. That's odd, I'm pretty sure I rebuilt them with JDK8. This time, @GMKennedy rebuilt them, hopefully they're ok now.

tresf commented

I've tested @GMKennedy's release with Java 1.6 and it works fine. Closing. Please use https://github.com/java-native/jssc/releases/tag/v2.9.4.

/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/javac -source 1.7 -target 1.7 -cp jssc-2.9.4.jar Main.java
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -cp .:jssc-2.9.4.jar Main  
# Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupported major.minor version 51.0

/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/javac -source 1.6 -target 1.6 -cp jssc-2.9.4.jar Main.java
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -cp .:jssc-2.9.4.jar Main     
# /dev/cu.Bluetooth-Incoming-Port
# /dev/cu.BoseMicroSoundLink-SPPD
# /dev/cu.debug-console
# /dev/cu.wlan-debug
# /dev/tty.Bluetooth-Incoming-Port
# /dev/tty.BoseMicroSoundLink-SPPD
# /dev/tty.debug-console
# /dev/tty.wlan-debug