Link to home
Start Free TrialLog in
Avatar of bhession
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;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; C:\Java\JavaEE\jdk\bin; C:\Java\JavaEE\bin

despite this I still get the error seen in the attached,

error.png
Avatar of tbsgadi
tbsgadi
Flag of Israel image

Similar question:
http:Q_21950363.html

Gary
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
 
 
 
What does "echo %PATH%" gives on the command prompt ?


Avatar of krishna kishore mellacheruvu venkata
Put in envionment variables under my computer and close the dos prompt and open again.
It will work.
Avatar of bhession
bhession

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
ASKER CERTIFIED SOLUTION
Avatar of cmalakar
cmalakar
Flag of India image

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
Wow thats embarrassing, good spot there.