Closed clankill3r closed 10 years ago
that's strange, java.target.version is set to 1.6 in the build properties of the lib, what version of the JDK are you using?
actually, this error might be "correct", in the sense that Processing itself moved to Java 7: http://stackoverflow.com/a/11432195
Even though the Syphon library is targeting 1.6, the core libs in Processing require JDK 7
But my processing works in IntelliJ along with 7 libraries that my project is using. Only the new syphon doesn't work.
If i run java -version in terminal i get:
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)
I'm really bad in those things (this shit makes me panic), and i'm really afraid to break something :)
Can you run Syphon from the PDE? What version of the core libs are you using in your IntelliJ project?
I can run it from the PDE and in IntelliJ i run the core from the most recent processing 2.2.1. (I double checked this).
IntelliJ uses Apple JDK 1.6 atm.
But that still doesn't explain why the latest processing can run in IntelliJ and Syphon won't. Looking at the error log in OP, what is JSyphon targeting?
JSyphon also targets against 1.6: https://github.com/Syphon/Java/blob/master/JSyphon/ant/build.xml
You can have Java 6 and 7 installed alongside in the same machine, can you change the JDK that IntelliJ uses?
"JDK 1.7 from Oracle is not officially supported yet and has known problems that stop us from using it by default."
Link from previous post.
Did someone else compiled Syphon for java then the previous time? Maybe he made changes to his ant build to target it 1.7?
It makes me wonder why the previous RC worked. Maybe i will use RC-1 and color the first pixel to tell the client what i'm sending. I'm not waiting for problems in IntelliJ and i prefer IntelliJ over Eclipse.
I believe I found the problem. Looking at the error again, the compatibility issue was specifically with jsyphon/JSyphonServer, which also targets 1.6 in the ant build file. However, the compiler level in Eclipse was not set, meaning that the .class files generated automatically by Eclipse were targeting 1.7. I very likely build the jsyphon jar without cleaning the binary folder, which means that the 1.7 class files were used by mistake. This should be corrected in RC3, please try it out and let me know if it works.
yes you did! Just in time, RC-1 stopped working for me. It works great, thanks a lot.
Great. Please let me know of any other issues with the RCs, as the plan is to have the 1.0 final out as soon as possible.
I will.
I can not use syphon in my intellij, could anyone help me? I have this problem:
objc[1344]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. java.lang.ClassCastException: processing.awt.PGraphicsJava2D cannot be cast to processing.opengl.PGraphicsOpenGL at codeanticode.syphon.SyphonServer.<init>(Unknown Source) at Main.setup(Main.java:27) at processing.core.PApplet.handleDraw(PApplet.java:2393) at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1540) at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)
Please don't spam every fucking issue with your problem.
I can't run the new version (RC2) in IntelliJ (and probably also not eclipse). I think you went to a more recent JDK.
http://stackoverflow.com/questions/12770622/java-lang-unsupportedclassversionerror
If it's me that should update then please tell me.