Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I started one cmd and orbd there.
C:\A2Server>orbd

Then I started another cmd and typed the following:
C:\A2Server>java com.sun.corba.se.impl.activation.ServerTool -cmd register -server a2server.A2Server -applicationName A2Server -classpath ./dist/A2Server.jar

But I got the error "Bad server definition: main class not found.

I'm using Windows 7 Home Premium x64, and jdk1.7.0_17. A2Server is the main class of the project and the server. It's in the a2server package. And the .jar file is in the dist directory under A2Server.

Anyone could tell me what's wrong?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900