From: Ronald Cole <ronald@forte-intl.com>
To: eclipse@sources.redhat.com
Subject: unclear how to get eclipse working on rhel3es for java devel...
Date: Tue, 30 Mar 2004 20:00:00 -0000 [thread overview]
Message-ID: <16489.53713.101170.702283@yakisoba.forte-intl.com> (raw)
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?
next reply other threads:[~2004-03-30 20:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-30 20:00 Ronald Cole [this message]
2004-03-30 20:25 ` Phil Muldoon
2004-03-30 21:12 ` Ronald Cole
2004-03-30 22:07 ` Phil Muldoon
2004-03-30 23:16 ` Ronald Cole
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16489.53713.101170.702283@yakisoba.forte-intl.com \
--to=ronald@forte-intl.com \
--cc=eclipse@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).