If you want to use -jar option, you need to put the classpath into the jar manifest. (Search google to find details on this).

Alternatively use -cp and specify the classpath completely there along with the main class.

I prefer the first option.

RG


Thor Wehage <[EMAIL PROTECTED]>

14/06/2006 12:28
Please respond to mina-dev

       
        To:        [email protected]
        cc:        
        Subject:        jarfile help needed



Hi MINA folks.

This is probably a noob question, but i'll try anyway:

I have built this game socketserver, and everything is fine when running
it from Eclipse, but then I wanted to try it out IRL. So now I have put
it on a Linux server, and this is where I get problems..
I can't make my app "see" what's inside the mina-core jarfile, and i
consequently get

/Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/mina/common/IoAcceptor/

I have tried a lot of different ways of starting it, but nothing seems
to work.. this is my latest attempt :

/java -jar MinaSocketserver.jar -cp mina-core-0.9.4.jar/

Both Jar files are in the same directory on the server.

Best regards
Thor Wehage



This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

Reply via email to