• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

j2ee command is not working

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
reply
    Bookmark Topic Watch Topic
  • New Topic