From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17024 invoked by alias); 30 Mar 2004 20:25:16 -0000 Mailing-List: contact eclipse-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: eclipse-owner@sources.redhat.com Received: (qmail 16954 invoked from network); 30 Mar 2004 20:25:15 -0000 Message-ID: <4069D7A9.4080109@redhat.com> Date: Tue, 30 Mar 2004 20:25:00 -0000 From: Phil Muldoon User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ronald Cole CC: eclipse@sources.redhat.com Subject: Re: unclear how to get eclipse working on rhel3es for java devel... References: <16489.53713.101170.702283@yakisoba.forte-intl.com> In-Reply-To: <16489.53713.101170.702283@yakisoba.forte-intl.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-q1/txt/msg00027.txt.bz2 I replicated what you did. Did you do this? Windows->Preferences->Java Click on Installed JREs If there is not a JRE there called "Standard VM", click Add then inside the following fields: JRE Name type "Standard VM" without the quotes in JRE Home Directory, click the browse button and navigate to the home of the JRE. For example. with the SUN JRE it would be something like: /usr/java/j2sdk1.4.2_04 or whatever path to the JRE choice you have installed. Click OK on the browse window, and it should populate JRE libraries box When you click OK to close the Installed JREs window, and click OK again to close the preferences window. After that it (Eclipse) should want to rebuild your project, and it should take care of the classpath issues Did this help at all? regards phil Ronald Cole wrote: >I've spent the last few months looking through the supplied user >documentation and used "The Java Developer's Guide to Eclipse" book, >and recently upgraded to your 2.1.1-4 release. > >I am unable to get a simple Hello World java problem to compile and >run. > >Following the instructions in Chapter 29, Exercise 2, Section 1, here >is what I did after an absolutely clean re-install: > > 1. Window > Open Perspective > Java > 2. [New Java Product] toolbar button > 3. Entered the Project Name: com.ibm.lab.usingjdt.helloworld > 4. [Finish] button > 5. [New Java Class] toolbar button > Class > 6. Entered the Class Name: HelloWorld > 7. Selected the main method stub creation. > 8. Unselected the inherited abstract methods creation > 9. [Finish] button > >I immediately get two task errors: > >* The project was not built due to classpath errors (incomplete or > involved in cycle). >* Unbound classpath container: 'Default System Library'. > >10. Expand HelloWorld.java in the Package Explorer view. >11. Select the class HelloWorld >12. Run > Run As > Java Application > >I am then greeted with the error: > > Exception occurred during launch > Reason: > The specified JRE installation does not exist. > >Ok, so then I install both the IBMJava2 rpms from the "Extras" disc >and follow the instructions from the "Java Development User Guide, >Basic tutorial, Preparing the workbench" to step six to the letter! > >I am able to detect /opt/IBMJava2-141/jre as the Installed JRE. > >However, I now have a two new task errors: > >* 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) > >So, now that I've tried reading the release notes and following the >instructions in the documentation, I am still unable to use Eclipse to >compile and run a simple HelloWorld java program. > >What am I missing or not doing? > >