I don't think -cp and -jar can be used together like that.  Try just using
-cp and place the .jar on the classpath.


> -----Original Message-----
> From: John D. Ware [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 01, 2002 3:10 PM
> To: Orion-Interest
> Subject: Re: Client program for simple EJB tutorial
> 
> 
> Hi,
>     This is indeed a timely question as I am working on this 
> also. I was able to get a client working until I tried to put 
> it into a jar file.
>     I get a ClassNotFoundException looking for the 
> com.evermind.server.ApplicationInitialContextFactory when 
> starting my app using:
> 
>     java -cp "c:/orion/orion.jar" -jar pet-class.jar
> 
> Again, it works fine (Note: no classpath specified) if run like:
> 
> java org.jdware.pet.client.PetClient      
> 
> any ideas?
> 
> 
> thanks
> 
> john ware
> 
> 
> 

Reply via email to