# 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 !

Sebastian Sturza
Greenhorn
Posts: 1
Well, i just had the same problem and managed to get rid of it by moving jdk1.6.0_14 and j2sdkee1.3.1 from C:\Program Files\Java\ to C:\ ... And that should get rid of the error... seems like somewhere in the .bat file the little space bethween Program and Files messes things up.

Downside is that now i got this error instead

C:\Documents and Settings\user>j2ee - verbose
Exception in thread "main" java.lang.NoClassDefFoundError: javax/net/ssl/trustStore=C:\j2sdkee1/3/1\lib\security\cacerts/jks
Caused by: java.lang.ClassNotFoundException: javax.net.ssl.trustStore=C:\j2sdkee1.3.1\lib\security\cacerts.jks