Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] JRE problem

In installing Eclipse 2.0 for OS X, everything went fine for me, up until I tried to set the JRE -- I didn't have any trouble doing this step previously when installing Eclipse M5 on OS X.

I have included Andre's instructions below with step numbers for reference.

Steps 1 through 5 seemed to work fine. After step 5, the panel for JRE system libraries showed the single entry:

/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/jre/lib/rt.jar

When I unchecked 'Use default system', the last 3 buttons (Remove, Add External JAR, Attach Source) became active, but I didn't see any item named 'JRE jar file' as described in Andre's step 7 below. The only other item with a Browse button was 'Javadoc URL'. I then tried various alternative things including 'Add External JAR' for the classes.jar file, but never did see an option to set a 'JRE jar file'.

Then however, when I complete step 9, I get an error dialog box that says:

"Installed JRE location no longer exists. JRE will be removed


Reason: JRE removed"

I did check and could not locate the rt.jar file in the directory indicated above for step 5. I did find the actual classes.jar file in the location indicated in step 8.

So I thought maybe something had messed up my Java installation, and so re-installed the Java1.3.1Update1 and Java1.3.1Update1Dev updates, but I still don't see the rt.jar file. Java and javac run just fine -- it's just this JRE problem that appears to be causing the difficulty:

[g4:~] pat% java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-root-020219-20:07)
Java HotSpot(TM) Client VM (build 1.3.1, mixed mode)

I am running on Mac OS X version 10.1.5

Any hints/suggestions would be welcomed at this point. Am I missing a required jar file? If so, what's the easiest way to recover the file? Or is Eclipse having its own issue with homing in on the JRE info?

I have been using Eclipse 2.0 for a while now (on Windows) and am really looking forward to using it on OS X. From what I could see, it looks very nice on OS X!

Setting up a JRE for MacOS X

1 – in Eclipse from the 'Window' menu open the 'Preferences' dialog.
2 – in the tree on the left hand side open the node 'Java' and select 'Installed JREs'
3 – press the 'Add' button
4 – in the 'JRE name' field enter 'MacVM'
5 – for the 'JRE home directory' press the browse button and navigate to
'/<MacOS X Volume>/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home'
and press 'Choose'
6 – uncheck the 'Use default library' checkbox
7 – for the 'JRE jar file' press the browse button and navigate to
'/<MacOS X Volume>/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes'
8 – select 'classes.jar' and press the 'Open' button
9 – close both dialogs with 'OK'


Thanks,

Pat Podenski

Back to the top