Executing sgs.jar file returns java.lang.ClassNotFoundException

I have a directory that contains the following items:
azur-server.jar
azur.properties
sgs.jar

azur.properties contains…
com.sun.sgs.app.authenticators=com.bigfishgames.azur.server.auth.OCAuthenticator

jar mt azur-server.jar contains the com.sun.sgs.app.authenticators class…
com/bigfishgames/azur/server/auth/OCAuthenticator.class

When I run the following…
java -jar sgs.jar azur.properties

May 7, 2007 6:13:53 PM com.sun.sgs.impl.kernel.Kernel
INFO: The Kernel is ready, version: 0.9-r1966M
May 7, 2007 6:13:53 PM com.sun.sgs.impl.kernel.Kernel startupApplication
SEVERE: Failed to load IdentityAuthenticator: com.bigfishgames.azur.server.auth.OCAuthenticator
java.lang.ClassNotFoundException: com.bigfishgames.azur.server.auth.OCAuthenticator

What can I do to correct this problem?

What dependencies does your OCAuthenticator rely on? Could it be it can’t construct properly? I’ve seen class not found errors simply because the class failed to construct. Try making a test class that simply constructs the OCAuthenticator class.

Hi

You don’t have your own code’s jar in the classpath anywhere.

HTH

Endolf

Created a test.jar with only IdentityAuthenticator: OCAuthenticator.class

jar -tf test.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/bigfishgames/
com/bigfishgames/azur/
com/bigfishgames/azur/server/
com/bigfishgames/azur/server/auth/
com/bigfishgames/azur/server/auth/OCAuthenticator.class

Added test.jar to CLASSPATH

Still getting the same SEVERE error.

Hmm.

Suggestion: Use one of our startup scripts (sgs.bat, sgs.sh) get that workign first, then try to write your own.

JK