Native Serial failure on Maveric
Closed this issue · 7 comments
I'm runinning a Mac OSX mavericks based system and have plugged in a USB to serial cable which I have connected to a board. I'm using your library to open the serial port which shows up as /dev/cu.usbserial-FTH0YJ3G. Opening the port fails with an exception
java.lang.UnsupportedClassVersionError: com/github/jodersky/flow/internal/NativeSerial : Unsupported major.minor version 51.0
I've uploaded my project on github
I'd really like to use your library so any help would be appreciated.
That sounds like a java incompatibility issue. Could you post the results of "java -version"?
This is what I get when i run it on the terminal
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)
It seems you are using an older JDK (1.6) than the one flow's provided packages were compiled with (1.7). The simplest solution is to upgrade java to a more recent version.
If that's not an option, you can rebuild flow and publish it locally. In this case, rebuilding only the scala front-end should be sufficient, the backend can still be included through the fat jars available via maven.
Thank you ... I'll try upgrading java to java 7 ...
I haven't forgotten the issue.. I'll test it out over the weekend and close if it is successful.
No worries, take the time you need
It seems to me this is pretty clearly a java version mismatch. If you still have the problem feel free to open another issue.