Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

j2ee command is not working  RSS feed

 
Saravanan Vijayappan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:\Documents and Settings\Administrator>j2ee -verbose
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Administrator>j2ee -start
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Administrator>

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()
banghead

Thanks,
Sarav !
 
Sebastian Sturza
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: javax.net.ssl.trustStore=C:\j2sdkee1.3.1\lib\security\cacerts.jks. Program will exit.

CHEERS !
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!