Community
Participate
Working Groups
I'm adding some java 1.5 features into a plugin (pydev), and I can run it and debug it inside eclipse without any problems, however, I just cannot make an update site or export the feature. I've set the compiler to 5.0 compliance, however, when exporting it as a feature, or update site, it always gives me the same error: Compliance level '1.4' is incompatible with source level '1.5'. A compliance level '1.5' or better is required. I've tried setting the compliance to 5.0 for each project and the error persisted. In the plug-in development, the target platform is java 1.5. The only installed jdk is 1.5 (altough initially I had 1.4 installed). My eclipse.ini has the following contents: -vm "C:\Program Files\Java\jdk1.5.0_04\bin\javaw.exe" -vmargs -Xms40m -Xmx256m I'm using the sun java 1.5_04 jdk (and the jre from the jdk).
Created attachment 25220 [details] The compiler preferences I'm using
Created attachment 25231 [details] The logs from the site build No '.class' files are generated (only this log).
I think this is one for PDE UI. Moving, please re-assign as appropriate.
Hi, I've finally been able to make it work. I had an old install of java 1.4, and apparently, the build was not using my workspace nor project settings, but this old version (don't know why, as I removed all traces from within eclipse) was not letting it work, anyway, after removing all 1.4 related installation from my system and installing the 1.5 jre (not only the jdk), it works. So, it appears that the build tools use some configurations from outside of the Eclipse 'sandbox', I just could not figure which... Fabio
Marking as resolved, then. I am not sure what the problem was, but was unable to reproduce.
Hi, I faced the same problem while exporting my RCP plug-in. However I did not have to remove the previous version of the JDK. I Just changed the PATH (JAVA_HOME as well) to point to JDK 1.5 and restarted Eclipse. This solved the problem but I guess this is just a stop-gap solution.
(In reply to comment #5) > Marking as resolved, then. I am not sure what the problem was, but was unable > to reproduce. Reading the comments I cannot see that this bug is resolved. PDE shoud respect the Compiler Compliance setting, and not work with the default system JRE (as is suggested by the comments). I guess a way to reproduce would be: - install jdk 1.5 - install jdk 1.4 (now the default JRE is the 1.4 JRE) - Create plugin that uses Java 5 features (e.g. printf). - export feature
reopening to mark as dup
*** This bug has been marked as a duplicate of 115637 ***