This allows it to do many things (such as run a project that has compile errors, at least to some extent) that it could not otherwise do.
With Java 5.0 code, the error message is consistent with a pre-1.5 compiler: "Type mismatch: cannot convert from int to Integer"Įclipse uses it's own compiler to build projects.bash_profile variable, but terminates it and moves to a prior version instead. So it seems that Eclipse is trying to use the.
System/Library/Frameworks/amework/Versions/1.5.0/Home/bin/java" - whether or not the code successfully compiles and runs (i.e., whether it's new Java 5.0 code that fails, or a safe Hello World that runs).
So Java 5.0 is working from Terminal (bash).īut now I've installed Eclipse 3.0.2, and it works fine until I attempt to compile Java 5.0 code (for example, autoboxing "Integer i = 7 "). Initially, I had some difficulty setting the "CurrentJDK" alias to the new version of Java (the 1.5.0 directory). I'm running Tiger ( Java 5.0) on Tiger (Mac OS 10.4).