1 Reply Latest reply on Mar 4, 2014 10:35 PM by Yong Hao Gao

    Hornetq 2.1.1 final start error - Exception in thread "main" java.lang.NoClassDefFoundError

    Damith K Newbie

      C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\bin>run.bat

      A subdirectory or file ..\logs already exists.

      ***********************************************************************************

      "java  -XX:+UseParallelGC  -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Dhornetq.config.dir=..\config\stand-alone\non-clustered  -Djava.util.logging.config.file=..\config\stand-alone\non-clustered\logging.properties -Djava.library.path=. -classpath ..\config\stand-alone\non-clustered;..\schemas\;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\hornetq-bootstrap.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\hornetq-core-client.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\hornetq-core.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\hornetq-jboss-as-integration.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\hornetq-jms-client.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\hornetq-jms.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\hornetq-logging.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\jboss-jms-api.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\jboss-mc.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\jnp-client.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\jnpserver.jar;C:\Documents and Settings\user\My Documents\Downloads\Workshop\hornetq-2.1.1.Final\hornetq-2.1.1.Final\lib\netty.jar org.hornetq.integration.bootstrap.HornetQBootstrapServer hornetq-beans.xml"

      ***********************************************************************************

      Exception in thread "main" java.lang.NoClassDefFoundError: and

      Caused by: java.lang.ClassNotFoundException: and

              at java.net.URLClassLoader$1.run(Unknown Source)

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

              at java.net.URLClassLoader.findClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

      Could not find the main class: and.  Program will exit.

       

       

      Is there anything to setup before run.bat?

      My JDK version is 1.6.0_45. and   HornetQ version is 2.1.1 final.