Description of problem: According to the "Workbench User Guide, Red Hat Release Notes" that come bundled with Eclipse, IBM SDK 1.4.1 is a recommended JRE. After installing IBMJava2-JRE and IBMJava2-SDK from the Extras disc and configuring Eclipse to use the newly installed JRE, any and all attempts to compile and run a Java Class fail. Version-Release number of selected component (if applicable): eclipse-2.1.1-4 IBMJava2-SDK-1.4.1-9 IBMJava2-JRE-1.4.1-8 How reproducible: Completely Steps to Reproduce: 1. Window > Preferences 2. Java > Installed JREs 3. Search > "/opt/IBMJava2-141" > OK 4. OK 5. Window > Open Perspective > Java 6. [New Java Product] toolbar button 7. Enter the Project Name: com.ibm.lab.usingjdt.helloworld 8. [Finish] button 9. [New Java Class] toolbar button > Class 10. Enter the Class Name: HelloWorld 11. Select the main method stub creation. 12. Unselect the inherited abstract methods creation 13. [Finish] button Actual results: * The project was not built since its classpath is incomplete. Cannot find the class file for java.lang.Object. Fix the classpath and then try rebuilding this project. * This compilation unit indirectly references the missing type java.lang.Object (typically some required class file is referencing a type outside the classpath) Expected results: Application to compile and run without error. Additional info: This is probably caused by bugzilla bug #114354, since said release notes concur that the IBM JRE worked as expected in the Beta version of Taroon.
Moving to Red Hat Developer Suite product for review.
I can't seem to reproduce this problem on an up2date RHEL3 box with the package versions that you mention. Are you still seeing this problem, given the resolution to bug #114354?
Yes. I have two installed JRE's: IBM's and Sun's. Both installed the same way. When I select the Sun JRE and Eclipse rebuilds everything, there are no errors in the task window. When I select the IBM JRE and Eclipse attempts to rebuild everything, the result is as described above: two errors in the task window.
I see what's happening here. When you do: 1. Window -> Preferences 2. Java -> Installed JREs 3. Search -> "/opt/IBMJava2-141" > OK ..., Eclipse searches and incorrectly identifies /opt/IBMJava2-141/jre as the path to the JRE, when it should be just /opt/IBMJava2-141. As a quick workaround: 1. Window -> Preferences 2. Java -> Installed JREs 3. Add... -> JRE home directory: /opt/IBMJava2-141
Sorry, but that workaround results in the same errors in the Tasks window for me. Does this really work for you? I'd load RHEL3 on another computer to test your claim that it does, but updating it won't be easy for me without buying another RHN subscription.
Well, I don't believe your claim that it works for you on a fully updated RHEL3 with IBMJava2-JRE-1.4.1-8, so I've reopened bug #114354. Here's why: With IBMJava2-JRE-1.4.1-8 and IBMJava2-SDK-1.4.1-9 from the "Extras" disc of RHEL3, "eclipse -vm /usr/IBMJava2-141/bin/java" tosses up an error window faster than Kerry can throw his 'Nam medals. $ java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20030917 (JIT enabled: jitc)) Now, if I install IBMJava2-SDK-1.4.1-2.0.i386.rpm from IBM's web site, "eclipse -vm /usr/IBMJava2-141.works/bin/java" comes up as expected with no errors in the task window! $ java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20040301 (JIT enabled: jitc))