I'm doing something simple wrong!

Hi,
I have a program which uses SonicMQ messenger to send JMS messages to a server and everything works fine until I pack it up into a JAR file.
I've traced the point in the program it will get up to and it is the first command that uses a package in the SonicMQ API.
I think it sounds like a classpath problem but I've set the classpath to reference all the sonic .jar files and I can't think of anything else.
The wierdest thing is that it works fine on a colleagues computer but we can't see what is different about his setup. He has far less files referenced in his class path although he also has SonicMQ installed.
Any help would be much appreciated as I'm very new to JMS and sonic (like one week!).
Cheers,
Ben.

The main method is in a seperate class which instantiates this one. My program has two methods of communication, firstly via sockets and this all works absolutely fine, even from out of the JAR file, the second using SonicMQ as my JMS provider works great when I run it from JBuilder5 but not from the Jar file. It is all one program which just connects different ways depending on your choices. JBuilder sets the classpath when it runs something and I have cut and pasted all this info into my environment variables and am certain that they point to the class which I am getting a ClassNotFoundException for, that is why I cannot understand what is going wrong at all.
What is the difference between a ClassNotFoundException and a NoClassDefFoundError?
This is my output:
connecting to wins-jiway2.wins.co.uk on 2506
clientName: bm1004002841249bm
Attempting to create connection...
Sonic connecting to: wins-jiway2.wins.co.uk:2506 user pswd winner_from_wins winner_to_wins
java.lang.ClassNotFoundException: progress.message.net.tcp.ProgressTcpSocketFactory
     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)
     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Unknown Source)
     at progress.message.net.ProgressSocketFactory.Cp_(:97)
     at progress.message.net.ProgressSocketFactory.getFactory(:64)
     at progress.message.net.ProgressSocketFactory.getFactory(:54)
     at progress.message.zclient.Connection.lq_(:2245)
     at progress.message.zclient.Connection.connect(:577)
     at progress.message.zclient.Connection.connect(:846)
     at progress.message.jclient.Connection.<init>(:223)
     at progress.message.jclient.QueueConnection.<init>(:126)
     at progress.message.jclient.QueueConnectionFactory.createQueueConnection(:252)
     at com.bootcomputers.rsp.SonicLink.setupConnection(SonicLink.java:98)
     at com.bootcomputers.rsp.SonicLink.<init>(SonicLink.java:60)
     at com.bootcomputers.rsp.mainFrame.createSocket(mainFrame.java:1053)
     at com.bootcomputers.rsp.rspClient.<init>(rspClient.java:58)
     at com.bootcomputers.rsp.rspClient.main(rspClient.java:133)
progress.message.util.EAssertFailure: STR008java.lang.ClassNotFoundException: progress.message.net.tcp.ProgressTcpSocketFactory
     at progress.message.net.ProgressSocketFactory.Cp_(:106)
     at progress.message.net.ProgressSocketFactory.getFactory(:64)
     at progress.message.net.ProgressSocketFactory.getFactory(:54)
     at progress.message.zclient.Connection.lq_(:2245)
     at progress.message.zclient.Connection.connect(:577)
     at progress.message.zclient.Connection.connect(:846)
     at progress.message.jclient.Connection.<init>(:223)
     at progress.message.jclient.QueueConnection.<init>(:126)
     at progress.message.jclient.QueueConnectionFactory.createQueueConnection(:252)
     at com.bootcomputers.rsp.SonicLink.setupConnection(SonicLink.java:98)

Similar Messages

Maybe you are looking for

  • How do I add a folder to the library into the smart playlist called "recently added"?

    Hello Apple users! I really miss the old version of I-tunes that allowed you to manually add files and folders from your hard drive directly into individually created I-tunes playlists with nothing more than copy and paste. I don't mind that the new

  • PS CS5 opens but canvas invisible unless in motion

    This is my story. Please read carefully, as I'm about to pull all of my hair out...I know this is long and detailed, but I'm trying to anticipate questions y'all might ask. I'm an experienced Photoshop user. I just installed Adobe CS5 (the whole suit

  • Snote 717452 having the status of "cannot be implemented"

    Dear all... While implementing Snote 717452 having the status of "cannot be implemented". is there any solution for this.. Thanks,

  • How to remove Broken DC's

    Hi, We have updated our SLD as per the note 669669, after that we have imported EPBUILDT into the MSS track after that all the tracks have become inconsistent and we see all the DC's as <b>broken</b> in CBS. Let us know if we have any procedure to re

  • Illustrator CS classes not known

    Some of Illustrators AppleScript classes are not known in ScriptEditor, e.g. layer. The following results in a syntax error: tell application "Illustrator CS" open file "Space:Users:bernhard:Documents:Test.ai" name of layer 1 of document 1 end tell T