bhession
asked on
Error with setting up SDK with J2EE, Environment variable
Hi,
I have recently purchase a new laptop, and I am trying to set up java for use again. Its Window 7 so I dont know if thats a problem. Basically I downloaded from sun and installed to C:\Java\JavaEE
So it seems to have installed fine now I set my environment variables, I set a system variable
J2EE_HOME at C:\Java\JavaEE
JAVA_HOME at C:\Java\JavaEE\jdk
finally editing PATH to,
%SystemRoot%\system32;%Sys temRoot%;% SystemRoot %\System32 \Wbem;%SYS TEMROOT%\S ystem32\Wi ndowsPower Shell\v1.0 \; C:\Java\JavaEE\jdk\bin; C:\Java\JavaEE\bin
despite this I still get the error seen in the attached,
error.png
I have recently purchase a new laptop, and I am trying to set up java for use again. Its Window 7 so I dont know if thats a problem. Basically I downloaded from sun and installed to C:\Java\JavaEE
So it seems to have installed fine now I set my environment variables, I set a system variable
J2EE_HOME at C:\Java\JavaEE
JAVA_HOME at C:\Java\JavaEE\jdk
finally editing PATH to,
%SystemRoot%\system32;%Sys
despite this I still get the error seen in the attached,
error.png
Looks like below path is wrong
C:\Java\JavaEE\jdk\bin; C:\Java\JavaEE\bin
search for javac.exe rt.jar or tools.jar or dt.jar and find the corresponding bin path and set it to your PATH einvironment variable. Usually this is how latest java software gets installed
<your choosen directory>\java\jdk\bin
C:\Java\JavaEE\jdk\bin; C:\Java\JavaEE\bin
search for javac.exe rt.jar or tools.jar or dt.jar and find the corresponding bin path and set it to your PATH einvironment variable. Usually this is how latest java software gets installed
<your choosen directory>\java\jdk\bin
What does "echo %PATH%" gives on the command prompt ?
Put in envionment variables under my computer and close the dos prompt and open again.
It will work.
It will work.
ASKER
I found javac.exe as seen below in the attached "javac_found", also the result of "echo %PATH% is attached at "path"
javac-found.png
path.png
javac-found.png
path.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow thats embarrassing, good spot there.
http:Q_21950363.html
Gary