Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » question on Eclipse error: "could not find java 2 run time environment"
question on Eclipse error: "could not find java 2 run time environment" [message #176768] Thu, 26 October 2006 16:26 Go to next message
Eclipse UserFriend
Originally posted by: qu.duan.qwest.com

Hi,

I suddenly get the above error (subject line) when I run Eclipse (with
MyEclipse) after a XP reboot. I did not see any change except I trying to
install and uninstall Oracle Client.

If anyone has clue to fix this error, please let me know.

Thanks

Qu
Re: question on Eclipse error: "could not find java 2 run time environment" [message #176775 is a reply to message #176768] Thu, 26 October 2006 16:51 Go to previous messageGo to next message
Henrik Wahlberg is currently offline Henrik WahlbergFriend
Messages: 6
Registered: July 2009
Junior Member
qu wrote:

> Hi,

> I suddenly get the above error (subject line) when I run Eclipse (with
> MyEclipse) after a XP reboot. I did not see any change except I trying to
> install and uninstall Oracle Client.

> If anyone has clue to fix this error, please let me know.

Assuming you use Windows, I'd check your eclipse shortcut and see where
Eclipse.exe is placed.
Then open a commandline and swich to that directory.
In there type "java -version"

I guess that the Oracle thingy may have installed some java and thus
modified some Java settings in your registry.
After uninstalling it, the java it installed is now gone. But the
"pointer" in registry not reset.
But that is only a guess

Regards Henrik.
Re: question on Eclipse error: "could not find java 2 run time environment" [message #176782 is a reply to message #176775] Thu, 26 October 2006 17:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: qu.duan.qwest.com

Thanks.

I am trying to locate the registry and think how do I know the original
value and change it back. Now i have to run eclipse from command line.

eclipse -vm "c:\Program Files\Java\jdk1.5.0_08|jre\bin\javaw"

Qu
Re: question on Eclipse error: "could not find java 2 run time environment" [message #176851 is a reply to message #176768] Thu, 26 October 2006 19:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"qu" <qu.duan@qwest.com> wrote in message
news:ee26e0279f6d4d91822ddc920e8d8de1$1@www.eclipse.org...
> Hi,
>
> I suddenly get the above error (subject line) when I run Eclipse (with
> MyEclipse) after a XP reboot. I did not see any change except I trying to
> install and uninstall Oracle Client.
>
> If anyone has clue to fix this error, please let me know.

The Oracle client is notorious for installing out-of-date Java versions at
the head of the path.
Re: question on Eclipse error: "could not find java 2 run time environment" [message #177386 is a reply to message #176782] Mon, 30 October 2006 14:48 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

qu wrote:
>
> Thanks.
> I am trying to locate the registry and think how do I know the original
> value and change it back. Now i have to run eclipse from command line.
> eclipse -vm "c:\Program Files\Java\jdk1.5.0_08|jre\bin\javaw"
>
> Qu
>

Yes, Oracle has messed up your PC path.
Anyway, it is best to run Eclipse with a -vm parameter. You can also
specify it in the eclipse.ini file, which I have just written about in
another thread a few minutes ago.

Hope this helps,
Eric
Previous Topic:mevenide vs. m2eclipse
Next Topic:Entering Code
Goto Forum:
  


Current Time: Sat Apr 20 04:05:34 GMT 2024

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

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

Back to the top