JarBundler trouble

Joined
Mar 21, 2011
Messages
1
Reaction score
0
Points
1
Hello,

Using JarBundler to bundle the jar that is dependent on 3 more jars.
Going through the standard .app building process and when file is generated it works well on double-click. All Good.
BUT when I copy it on computer other than the developer machine, I get

Code:
[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
Exception in thread "main"
java.lang.NoClassDefFoundError

One of the depending .jars i swing-layout*.jar

I'm in bad situation as I don't have another Mac around where I could tweak the generated .app

What causes this? How to fix?
Is there any better way to test the app on my comp? Works well from the command line also


Regards

P.S.
Also posted on:
JarBundler trouble - MacRumors Forums
 
Joined
Oct 26, 2009
Messages
128
Reaction score
8
Points
18
The NoClassDefFoundError is easy to fix in most cases. You need to specify the class path when running your program. All Java programs require the class path to be specified. Link provided with more information.

Setting the class path
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top