Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Disappearing JRE
Disappearing JRE [message #156733] Thu, 29 April 2004 20:44 Go to next message
mminka Mising name is currently offline mminka Mising nameFriend
Messages: 8
Registered: July 2009
Junior Member
hi all
I'm a newbie. I'm on Eclipse 2.1.1 (SUSE 9.0 operating system).

I have been playing with eclipse all day, doing various tutorials etc.
Now I am going through the JUnit tutorial and something is busted.

Earlier today Windows - Preferences - Installed JRE's found 4 JRE's.
Now it finds none, and my builds fail because there is no
java.lang.Object. No matter what search path I give it for the JRE,
no JRE. But I can compile and run outside of Eclipse fine.

For example if I give the search query
the result of $JRE_HOME which is /usr/lib/java/jre
it doesn't find it.

If I give the search query

/usr/lib/SunJava2-1.4.2 or /usr/lib/SunJava2-1.4.2/jre
/usr/lib/SunJava2-1.4.2/lib

etc, nothing works.

Do I need to re-install? what gives?

thanks!! rt.
Re: Disappearing JRE [message #156742 is a reply to message #156733] Thu, 29 April 2004 21:33 Go to previous messageGo to next message
mminka Mising name is currently offline mminka Mising nameFriend
Messages: 8
Registered: July 2009
Junior Member
Here is more information on my query.
When I delete the Junit project and make it again, the Package Explorer
tree has the message 'Could not resolve class path entry.'

The class path file has the contents
<classpath>
<classpathentry kind="src" path=""/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path=""/>
</classpath>

What is this JRE_CONTAINER? is this malfunctioning or did the config
somehow break? I can't find documentation on this.

thanks, rt.

Robert Talent wrote:
> hi all
> I'm a newbie. I'm on Eclipse 2.1.1 (SUSE 9.0 operating system).
>
> I have been playing with eclipse all day, doing various tutorials etc.
> Now I am going through the JUnit tutorial and something is busted.
>
> Earlier today Windows - Preferences - Installed JRE's found 4 JRE's.
> Now it finds none, and my builds fail because there is no
> java.lang.Object. No matter what search path I give it for the JRE,
> no JRE. But I can compile and run outside of Eclipse fine.
>
> For example if I give the search query
> the result of $JRE_HOME which is /usr/lib/java/jre
> it doesn't find it.
>
> If I give the search query
>
> /usr/lib/SunJava2-1.4.2 or /usr/lib/SunJava2-1.4.2/jre
> /usr/lib/SunJava2-1.4.2/lib
>
> etc, nothing works.
>
> Do I need to re-install? what gives?
>
> thanks!! rt.
>
Re: Disappearing JRE [message #156793 is a reply to message #156742] Fri, 30 April 2004 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Robert Talent wrote:

> Here is more information on my query.
> When I delete the Junit project and make it again, the Package Explorer
> tree has the message 'Could not resolve class path entry.'
>
> The class path file has the contents
> <classpath>
> <classpathentry kind="src" path=""/>
> <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> <classpathentry kind="output" path=""/>
> </classpath>
>
> What is this JRE_CONTAINER? is this malfunctioning or did the config
> somehow break? I can't find documentation on this.

Containers are collections of libs, basically. The JRE_CONTAINER is the
one that contains all the standard JRE libraries, including things like
java.lang.Object.

It was not clear from your previous post if you have tried or been able
to add a new JRE to your Eclipse configuration. (Preferences > Java >
Installed JREs > Add button). You should be able to browse to the JRE
home directory and when you select it Eclipse should fill in the JRE
Libraries box automatically.
Is this what you've tried? If so, what exactly were the results?

HTH,
Eric
--


> Robert Talent wrote:
>
>> hi all
>> I'm a newbie. I'm on Eclipse 2.1.1 (SUSE 9.0 operating system).
>>
>> I have been playing with eclipse all day, doing various tutorials etc.
>> Now I am going through the JUnit tutorial and something is busted.
>>
>> Earlier today Windows - Preferences - Installed JRE's found 4 JRE's.
>> Now it finds none, and my builds fail because there is no
>> java.lang.Object. No matter what search path I give it for the JRE,
>> no JRE. But I can compile and run outside of Eclipse fine.
>>
>> For example if I give the search query
>> the result of $JRE_HOME which is /usr/lib/java/jre
>> it doesn't find it.
>>
>> If I give the search query
>>
>> /usr/lib/SunJava2-1.4.2 or /usr/lib/SunJava2-1.4.2/jre
>> /usr/lib/SunJava2-1.4.2/lib
>>
>> etc, nothing works.
>>
>> Do I need to re-install? what gives?
>>
>> thanks!! rt.
>>
>
For Sale: parachute, used once, never opened, small stain.
Re: Disappearing JRE [message #157238 is a reply to message #156793] Tue, 04 May 2004 20:37 Go to previous message
mminka Mising name is currently offline mminka Mising nameFriend
Messages: 8
Registered: July 2009
Junior Member
hi & thanks for your replies, I found this as a bug in my version and
updated and it went away.
rt

Eric Rizzo wrote:
> Robert Talent wrote:
>
>> Here is more information on my query.
>> When I delete the Junit project and make it again, the Package
>> Explorer tree has the message 'Could not resolve class path entry.'
>>
>> The class path file has the contents
>> <classpath>
>> <classpathentry kind="src" path=""/>
>> <classpathentry kind="con"
>> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>> <classpathentry kind="output" path=""/>
>> </classpath>
>>
>> What is this JRE_CONTAINER? is this malfunctioning or did the config
>> somehow break? I can't find documentation on this.
>
>
> Containers are collections of libs, basically. The JRE_CONTAINER is the
> one that contains all the standard JRE libraries, including things like
> java.lang.Object.
>
> It was not clear from your previous post if you have tried or been able
> to add a new JRE to your Eclipse configuration. (Preferences > Java >
> Installed JREs > Add button). You should be able to browse to the JRE
> home directory and when you select it Eclipse should fill in the JRE
> Libraries box automatically.
> Is this what you've tried? If so, what exactly were the results?
>
> HTH,
> Eric
> --
>
>
>> Robert Talent wrote:
>>
>>> hi all
>>> I'm a newbie. I'm on Eclipse 2.1.1 (SUSE 9.0 operating system).
>>>
>>> I have been playing with eclipse all day, doing various tutorials
>>> etc. Now I am going through the JUnit tutorial and something is busted.
>>>
>>> Earlier today Windows - Preferences - Installed JRE's found 4 JRE's.
>>> Now it finds none, and my builds fail because there is no
>>> java.lang.Object. No matter what search path I give it for the JRE,
>>> no JRE. But I can compile and run outside of Eclipse fine.
>>>
>>> For example if I give the search query
>>> the result of $JRE_HOME which is /usr/lib/java/jre
>>> it doesn't find it.
>>>
>>> If I give the search query
>>>
>>> /usr/lib/SunJava2-1.4.2 or /usr/lib/SunJava2-1.4.2/jre
>>> /usr/lib/SunJava2-1.4.2/lib
>>>
>>> etc, nothing works.
>>>
>>> Do I need to re-install? what gives?
>>>
>>> thanks!! rt.
>>>
>>
> For Sale: parachute, used once, never opened, small stain.
Previous Topic:Java Breakpoint Properties dialog
Next Topic:No local variables when debugging java.lang.Integer
Goto Forum:
  


Current Time: Thu Dec 26 14:25:15 GMT 2024

Powered by FUDForum. Page generated in 0.03980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top