Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Error: could not find Java Runtime Environment(Help New User)
Error: could not find Java Runtime Environment [message #542779] Sat, 26 June 2010 02:35 Go to next message
No real name is currently offline No real name
Messages: 3
Registered: June 2010
Junior Member
Hi to all,

I'm new to Eclipse, and I'm having trouble launching Eclipse. I have the error message of:

Error: could not find Java Runtime Environment

Thank you

SC
Re: Error: could not find Java Runtime Environment [message #542844 is a reply to message #542779] Sat, 26 June 2010 17:30 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
On 6/25/2010 10:35 PM, s4chan@msn.com wrote:
> Hi to all,
>
> I'm new to Eclipse, and I'm having trouble launching Eclipse. I have the
> error message of:
>
> Error: could not find Java Runtime Environment
>

You need to install one. See
http://www.eclipse.org/downloads/moreinfo/jre.php .

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Error: could not find Java Runtime Environment [message #542871 is a reply to message #542844] Sat, 26 June 2010 22:20 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 3
Registered: June 2010
Junior Member
Hi

I have installed JAVA 2 PLATFORM STANDARD EDITION RUNTIME ENVIRONMENT 5.0 from Sun Microsystems, Inc

I run on Windows 7 64 bit version

Thank you for helping out!

Sam
Re: Error: could not find Java Runtime Environment [message #542872 is a reply to message #542871] Sat, 26 June 2010 22:21 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 3
Registered: June 2010
Junior Member
Even though I have Java in the system, it seems Eclipse just won't launch or associate with it, not sure how to config it so that it does


Sam
Re: Error: could not find Java Runtime Environment [message #542965 is a reply to message #542872] Mon, 28 June 2010 03:18 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 176
Registered: July 2009
Senior Member
s4chan@msn.com wrote:
> Even though I have Java in the system, it seems Eclipse just won't
> launch or associate with it, not sure how to config it so that it does
>
>
> Sam

I assume you have a 64 bit machine, since you said (in a related thread)
you have a 64 bit Java VM? Once you've confirmed that, you'll want to be
sure you got the 64 bit version of Eclipse. (The 32 bit version will run
on a 64 bit machine, but only if you have a 32 bit VM).

In the worst case ... if the eclipse.exe can not find your vm for some
reason, or if you have multiple ones and you want to pick which one is
used, you can use the "-vm" argument to specify the path to your java vm.

See
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.user/tasks/running_eclipse.htm


You might also be interested in the eclipse.newcomer newsgroup/forum.
That's where questions like this would normally be asked/answered and
some there might have more insight or advice about "getting started".

Good luck,
Re: Error: could not find Java Runtime Environment [message #542997 is a reply to message #542871] Mon, 28 June 2010 07:17 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro Molinari
Messages: 278
Registered: July 2009
Senior Member
Il 27/06/2010 0.20, s4chan@msn.com ha scritto:
> I have installed JAVA 2 PLATFORM STANDARD EDITION RUNTIME ENVIRONMENT
> 5.0 from Sun Microsystems, Inc
>
> I run on Windows 7 64 bit version
>
> Thank you for helping out!

If you downloaded a 64-bt Eclipse bundle, you have to install a 64-bit
version of the JRE. Since AFAIK the Java 5 64 bit JRE bundles do not
register as "public" JREs, Eclipse might not find any suitable 64-bit
JRE. In this case, try one of the following:

1) run eclipse with the -vm <path> command parameter, pointing to your
64-bit JRE (ex.: 'eclipse -vm "c:\Program Files\jre1.5.0_etc"')
2) edit eclipse.ini in Eclipse installation directory and add the -vm
parameter above, then run eclipse normally

See also:
http://www.eclipse.org/eclipse/development/readme_eclipse_3. 6.html#RunningEclipse
(if you're using Eclipse 3.6)

HTH.
Mauro.
Re: Error: could not find Java Runtime Environment [message #555807 is a reply to message #542872] Sat, 28 August 2010 22:39 Go to previous messageGo to next message
Tim Berneman is currently offline Tim Berneman
Messages: 1
Registered: August 2010
Junior Member
I had the same exact problem with Win7+Eclipse3.6+JRE1.6 and it said it couldn't find java. The solution was to add the location of JRE to my path variable. To do this on Win7 follow the instructions below (may be similar for other Windows versions):

Right-click "My Computer", select "Advanced system settings" on the left, Click on the "Environment Variables..." button in the System Properties dialog.

In the Environment Variables dialog scroll through the System variables and click on the "Path" variable, click the "Edit..." button.

In the Edit System Variable dialog click in the Variable value text box, scroll to the end of it, and then add a semi-colon ";" (to separate different paths) and then add the path to the JRE, in my case it was "C:\Program Files\Java\jre6\bin" which is the default location. Click the "OK" button, "OK" again, and "OK" one last time.

Try running Eclipse now. That's all I had to do. Hope this helps others out there.

Tim :o]
Re: Error: could not find Java Runtime Environment [message #555981 is a reply to message #555807] Mon, 30 August 2010 13:00 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3223
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 8/28/2010 4:39 PM, Tim Berneman wrote:
> I had the same exact problem with Win7+Eclipse3.6+JRE1.6 and it said it
> couldn't find java. The solution was to add the location of JRE to my
> path variable. To do this on Win7 follow the instructions below (may be
> similar for other Windows versions):
>
> Right-click "My Computer", select "Advanced system settings" on the
> left, Click on the "Environment Variables..." button in the System
> Properties dialog.
>
> In the Environment Variables dialog scroll through the System variables
> and click on the "Path" variable, click the "Edit..." button.
>
> In the Edit System Variable dialog click in the Variable value text box,
> scroll to the end of it, and then add a semi-colon ";" (to separate
> different paths) and then add the path to the JRE, in my case it was
> "C:\Program Files\Java\jre6\bin" which is the default location. Click
> the "OK" button, "OK" again, and "OK" one last time.
>
> Try running Eclipse now. That's all I had to do. Hope this helps others
> out there.
>
> Tim :o]
>

You should instead associate a JDK (not a mere JRE) with Eclipse via the
-vm option in eclipse.ini as the earlier respondent said. (I say this so
that subsequent readers of the thread may know the correct way of doing
this.)
Previous Topic:Source bundles for WTP Webpage editor
Next Topic:Auto updating links & linked snippets
Goto Forum:
  


Current Time: Fri Oct 24 12:08:23 GMT 2014

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

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