eclipse - JRE or JDK error

AussieSilver
AussieSilver used Ask the Experts™
on
Hi,

I'm running windows 7 and developing my application using eclipse. I decided to install netBeans  I installed JDK + netBeans Bundle  from
http://java.sun.com/javase/downloads/index.jsp

After that  I got the following error message:

A java runtime Enviroment (JRE) or Java Development KIt (JDK) must be availavle in order to run Eclipse. No Hava virtual machine was found after searching the following locatons:
c:\User\Turki\Documents\eclipse\jre\bin\javaw/exe
javaw.exe in your current PATH

hints:

netBeans installed in the following directory:

C:\Program Files (x86)\NetBeans 6.8

JDK for netBeans IDE:

C:\Program Files (x86)\Java\jdk1.6.0_18

--- Please help -----

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Robb HillSenior .Net Full Stack Developer

Commented:

Author

Commented:
Hi,

it seems does not work. It gives an error with the following link:

http://java.com/en/download/help/index.xml
Robb HillSenior .Net Full Stack Developer

Commented:
What is the error
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Author

Commented:

The installer cannot proceed with the current internet connection settings. please visit the following web site for more information:
sounds more that Eclipse can't fiind you JDK/JRE. If you enter in the command promt: java -version. Do you get the java version?

You can als check your $PATH en $JAVA_HOME.

Hope this helps

Author

Commented:
hi jan,

i cant get Java version as you typed.. how can i check $PATH-- $JAVA_HOME.. Please help

Author

Commented:
GUys,

Can someone help me for this issue !!! I'm really stuck !!
Then it's really simple. You have to set your environment variable to the path that Java is installed.

Do you have Java installed? and witch OS are you using?

Author

Commented:
Yes..

I'm using windows 7.... Please advise how can i set he environment !!

Author

Commented:
this is my java directory

C:\Program Files (x86)\Java

it has two folders:

- jdk1.6.0_18
- jre6
in the case of Windows:

Add an evironment variable called: JAVA_HOME with the path to your java installation als value; example: C:\Program files\Java\JDK\

Next add to the PATH variable the following ;$JAVA_HOME\bin.

then when you open an new command window, 'java -version' will result in the Java version you have installed.

Author

Commented:
which java inalation folder?

jdk1.6.0_18?
or

jre6?

thanks

Author

Commented:
Hi,

this is my Path variable.. can you add the required value with it?

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Common Files\DivX Shared\
here an example how you can set JAVA_HOME in windows:

http://www.advancedwebstats.com/user-guide/html/en/ch05.html#install-java-win

 
JAVA_HOME should be set to the home folder of your JDK - typically C:\jdk1.6.0_05 (or whatever version and wherever you installed it).

JRE_HOME is hardly ever needed - I've never ever set it before.

PATH should include "%JAVA_HOME%\bin" for Windows or $JAVA_HOME/bin for Linux / Unix / ...
Depending on whether or not JAVA_HOME contains any spaces you'd want to put the entire path, including the \bin, in quotes.


your path:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Common Files\DivX Shared\;%JAVA_HOME%\bin\

Your JAVA_HOME sould point to your JDK

Author

Commented:
You are Great !!!!!!!

Thanks very much
No problem

I hope this did the trick :)

greetz

Jan-Martijn

Author

Commented:
I got another error when I click run in Eclipse !!

The error is :

Java Virtual Machine Launcher.

Error: could not open c:\Program Files(x86)\jre6\i386\jvm.cfg

Cheers,
Robb HillSenior .Net Full Stack Developer

Commented:
Remove Java install....and all in the bundle...and simply resintall the lastest JE 6 version 12

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial