Link to home
Start Free TrialLog in
Avatar of AussieSilver
AussieSilver

asked on

eclipse - JRE or JDK error

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 -----

Avatar of Robb Hill
Robb Hill
Flag of United States of America image

Avatar of AussieSilver
AussieSilver

ASKER

Hi,

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

http://java.com/en/download/help/index.xml
What is the error

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
hi jan,

i cant get Java version as you typed.. how can i check $PATH-- $JAVA_HOME.. Please help
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?
Yes..

I'm using windows 7.... Please advise how can i set he environment !!
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.
which java inalation folder?

jdk1.6.0_18?
or

jre6?

thanks
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\
ASKER CERTIFIED SOLUTION
Avatar of Jan-Martijn
Jan-Martijn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
You are Great !!!!!!!

Thanks very much
No problem

I hope this did the trick :)

greetz

Jan-Martijn
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,
Remove Java install....and all in the bundle...and simply resintall the lastest JE 6 version 12