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\ec lipse\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 -----
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\ec
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 -----
ASKER
Hi,
it seems does not work. It gives an error with the following link:
http://java.com/en/download/help/index.xml
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
ASKER
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
You can als check your $PATH en $JAVA_HOME.
Hope this helps
ASKER
hi jan,
i cant get Java version as you typed.. how can i check $PATH-- $JAVA_HOME.. Please help
i cant get Java version as you typed.. how can i check $PATH-- $JAVA_HOME.. Please help
ASKER
GUys,
Can someone help me for this issue !!! I'm really stuck !!
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?
Do you have Java installed? and witch OS are you using?
ASKER
Yes..
I'm using windows 7.... Please advise how can i set he environment !!
I'm using windows 7.... Please advise how can i set he environment !!
ASKER
this is my java directory
C:\Program Files (x86)\Java
it has two folders:
- jdk1.6.0_18
- jre6
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.
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.
ASKER
which java inalation folder?
jdk1.6.0_18?
or
jre6?
thanks
jdk1.6.0_18?
or
jre6?
thanks
ASKER
Hi,
this is my Path variable.. can you add the required value with it?
%SystemRoot%\system32;%Sys temRoot%;% SystemRoot %\System32 \Wbem;%SYS TEMROOT%\S ystem32\Wi ndowsPower Shell\v1.0 \;C:\Progr am Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Progr am Files (x86)\QuickTime\QTSystem\; C:\Program Files (x86)\Common Files\DivX Shared\
this is my Path variable.. can you add the required value with it?
%SystemRoot%\system32;%Sys
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
your path:
%SystemRoot%\system32;%Sys temRoot%;% SystemRoot %\System32 \Wbem;%SYS TEMROOT%\S ystem32\Wi ndowsPower Shell\v1.0 \;C:\Progr am Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Progr am Files (x86)\QuickTime\QTSystem\; C:\Program Files (x86)\Common Files\DivX Shared\;%JAVA_HOME%\bin\
Your JAVA_HOME sould point to your JDK
%SystemRoot%\system32;%Sys
Your JAVA_HOME sould point to your JDK
ASKER
You are Great !!!!!!!
Thanks very much
Thanks very much
No problem
I hope this did the trick :)
greetz
Jan-Martijn
I hope this did the trick :)
greetz
Jan-Martijn
ASKER
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.c fg
Cheers,
The error is :
Java Virtual Machine Launcher.
Error: could not open c:\Program Files(x86)\jre6\i386\jvm.c
Cheers,
Remove Java install....and all in the bundle...and simply resintall the lastest JE 6 version 12
http://www.java.com/en/download/inc/windows_new_ie.jsp