• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Can't start the server-----please help!

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried to start J2EE 1.3 RI but got the following error:

F:\Certification\SCBCD\projects\advice>j2ee -verbose
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Any idea?
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dunno really but a few hints to help debug -
1. Check the files you have to set paths and classpaths etc. I guess the problem is specifying the 'Program Files' folder and you are getting the error due to the space.
2. Check if the problem is not of the drive - F and C. Check if the drives are specified properly where needed.

Regards,
Leena
 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Leena,

I use windows xp. This is what I did to set the environment variables:

J2EE_HOME F:\j2sdkee1.3.1
JAVA_HOME C:\Program Files\Java\jdk1.5.0
PATH %PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin;%J2EE_HOME%\bin
CLASSPATH F:\j2sdkee1.3.1\lib\j2ee.jar

Yes there is a space in c:\Program Files but that did not give me any problems until I tried to start J2EE RI. I tried to add a double quote to Program Files but that did not work either... I am stuck!
 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I have solved the path problems by adding "" to JAVA_HOME in setenv.bat file. But then I got this error:



Logging for J2EE Server Version: 1.3.1-b17 started at: Mon Feb 21 12:08:46 EST 2005..
Using the Java HotSpot(TM) Client VM and the version number 1.5.0-rc from Sun Microsystems Inc..
VM is using the classpath: F:\j2sdkee1.3.1\lib\system\cloudscape.jar;F:\j2sdkee1.3.1\lib\system\tools.jar;F:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;F:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;F:\j2sdkee1.3.1\lib\classes;F:\j2sdkee1.3.1\classes;F:\j2sdkee1.3.1\lib\j2ee.jar;F:\j2sdkee1.3.1\lib\toolclasses;F:\j2sdkee1.3.1\lib\j2eetools.jar;F:\j2sdkee1.3.1\lib\locale;;C:\Program Files\Java\jdk1.5.0\lib\tools.jar;F:\j2sdkee1.3.1\lib\jhall.jar .
J2EE Home Directory has been set to: F:\j2sdkee1.3.1.


Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/IdentityHashtable
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.<clinit>(Util.java:87)
at com.sun.corba.ee.internal.POA.POAImpl.activate(POAImpl.java:935)
at com.sun.corba.ee.internal.POA.POAImpl.activate_object(POAImpl.java:895)
at com.sun.corba.ee.internal.CosNaming.TransientNameService.initialize(TransientNameService.java:117)
at com.sun.corba.ee.internal.CosNaming.TransientNameService.<init>(TransientNameService.java:70)
at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:103)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)



Can any one tell me what is wrong?
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This might help. Lets thank Eric for posting the answer also.

Regards,
Leena
reply
    Bookmark Topic Watch Topic
  • New Topic