# j2ee command is not working

Saravanan Vijayappan
Ranch Hand
Posts: 47
Hi,

I have installed j2ee 1.3.1 Sdk from sun web site http://java.sun.com/j2ee/sdk_1.3/... But, j2ee command is not working even if i have set up J2EE_HOME, JAVA_HOME, PATH env variable. It is strange, I am not able to correct it myself. Please help me asap.

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

These are env variable values

J2EE_HOME = C:\j2sdkee1.3.1
JAVA_HOME= C:\Program Files\Java\jdk1.5.0_03
PATH = C:\Program Files\Java\jdk1.5.0_03\bin;C:\j2sdkee1.3.1\bin;

I have restarted my CMD prompt. I have been trying since past 3 days. Please help me asap. javascript: x()

Thanks,
Sarav !

Jaikiran Pai
Sheriff
Posts: 10447
227
"Saravvij"

Jaikiran Pai
Sheriff
Posts: 10447
227
JAVA_HOME= C:\Program Files\Java\jdk1.5.0_03
PATH = C:\Program Files\Java\jdk1.5.0_03\bin

There have been many cases where you see weird problems, when Java is installed in a folder containing a space in its path. In your case, you have Java installed in C:\Program Files which has a space in its path. Move you Java folder to some other path which does not have a space in its path (maybe C:\Java) and change the JAVA_HOME and PATH appropriately to point to this new folder. Then run the command.
[ August 08, 2007: Message edited by: Jaikiran Pai ]

Saravanan Vijayappan
Ranch Hand
Posts: 47
Amazing !!

Your Idea worked. Thank you very much !!

 With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.