activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Beck <>
Subject ConnectionFactory issue
Date Wed, 26 Jun 2013 23:45:05 GMT
I am trying to compile my java code and need javax.jms.ConnectionFactory. I
am pretty sure I am including the right jar files in the classpath
(geronimo-jms_1.1_spec-1.1.1.jar) because it does create my .class files
properly. However when I run my program it gives me this:

Exception in thread "main" java.lang.NoClassDefFoundError:
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(
    at java.lang.Class.getMethod0(
    at java.lang.Class.getMethod(
    at sun.launcher.LauncherHelper.getMainMethod(
    at sun.launcher.LauncherHelper.checkAndLoadMain(
Caused by: java.lang.ClassNotFoundException: javax.jms.ConnectionFactory
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    ... 6 more

What could be causing this?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message