0 Replies Latest reply on Mar 27, 2013 9:56 PM by yusano

    SSL Setup problem

    yusano

      Hi,

       

      I'm configuring SSL on jboss 4.2.1 GA by following this ssl setup.

       

      But when i tried to run this command

       

      java -Djavax.net.ssl.trustStore=client.truststore -Djavax.net.ssl.trustStorePassword=123456 acme/ReadHttpsURL2https://localhost:8443

      I get this following error

       

      Exception in thread "main" java.lang.NoClassDefFoundError: acme/ReadHttpsURL2

      Caused by: java.lang.ClassNotFoundException: acme.ReadHttpsURL2

                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

      Could not find the main class: acme/ReadHttpsURL2.  Program will exit.

      Someone said that i need to replace that part in command with my main class.

       

      My question is, How can i find my main class?