Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=6285357 By: dj_ryan
Hi all, Pretty simple, I want to do: - Use Jython to script/program my Eclipse project Here are some more parameters: - I'm on OS X - Eclipse itself is running in JVM 1.5 (as it must on OS X, sad!) - My project is compiled in 1.6, and cannot be compile in 1.5 for various reasons. So, I get pretty far to the console stage, but now I get error such as: java.lang.UnsupportedClassVersionError: java.lang.UnsupportedClassVersionError: Bad version number in .class file Oh that's weird, since in "ps xauw" it appears that the jython remote shell is running as Java 1.6 (the system default, and what java -version and javac -version indicate): 41679 ?? S 0:07.29 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Dpython.cachedir=/ [ removed excessively large path here ] /Users/ryan/eclipse/plugins/org.python.pydev_1.4.2/PySrc/pydevconsole.py 49497 49498 Ok, so far so weird. Well let's try this: >>> import sys >>> sys.platform 'java1.5.0_16' At which point I boggle... Apparently somehow the Jython runs with the Eclipse JVM, which more or less destroys me at this point. Some docs indicate that there is something about an 'external interpreter' but I see no flag to set such a thing. So, why does PyDev insist on running jython with the Eclipse JVM, rather than the _system default_ JVM and the _default JVM_ in the Eclipse settings? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users