Error with setting up SDK with J2EE, Environment variable

bhession
bhession used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Similar question:
http:Q_21950363.html

Gary

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

Commented:
What does "echo %PATH%" gives on the command prompt ?


Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Put in envionment variables under my computer and close the dos prompt and open again.
It will work.

Author

Commented:
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
Commented:
try removing spaces.. in between the directories in the path.

\WindowsPowerShell\v1.0\;  C:\Java\JavaEE\jdk\bin;

Author

Commented:
Wow thats embarrassing, good spot there.

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