MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
BrianH
Post subject: Jar File Problems  PostPosted: Jun 08, 2006 - 05:47 PM
Registered Member
Registered Member


Joined: Mar 21, 2006
Posts: 13

I'm obviously doing something wrong, but I can't figure out what. I've built a simple app using your new Matisse library. It runs fine in the IDE, but errs out at the command line. The error I get is

C:\eclipse\workspace\DIMSInputGenerator>java -jar DIMGen.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/G
roupLayout$Group

I've checked the contents of the jar, and it includes lib/swing-layout-1.0.jar. Here's the contents of MANIFEST.MF

Manifest-Version: 1.0
Main-Class: DIMView
Import-Package: javax.swing,
javax.swing.border,
javax.swing.event,
org.jdesktop.layout
Bundle-SymbolicName: DIMGen
Bundle-Version: 1.0
Bundle-Name: DIMS Input Generator
Bundle-Vendor: Booz Allen Hamilton
Bundle-ClassPath: lib/,
classes/
Require-Bundle: com.genuitec.eclipse.desktop

I don't think I need the javax.swing and eclipse.desktop packages, but I'm getting desparate. What am I missing? I've run into similar problems on my last two projects, and haven't been able to come up with a soluton other than to leave out the feature.

Thanks,
Brian
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jun 08, 2006 - 05:51 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Brian,
I'm not versed very well in JAR creation and execution rules, but I think your ClassPath entry that says "lib/" should be specific JAR files like "lib/swing-layout-1.0.jar", also I believe that path is relative to the current dir, not internal to the JAR, so it shouldn't be packaged up in it IIRC.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
BrianH
Post subject:   PostPosted: Jun 08, 2006 - 06:09 PM
Registered Member
Registered Member


Joined: Mar 21, 2006
Posts: 13

Thanks. I changed those, but it didn't do any good. Any other suggestions?

Thanks,
Brian
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jun 08, 2006 - 06:14 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824


_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
BrianH
Post subject:   PostPosted: Jun 08, 2006 - 06:21 PM
Registered Member
Registered Member


Joined: Mar 21, 2006
Posts: 13

OK. I'll try it.
Thanks,
Brian
 
 View user's profile Send private message  
Reply with quote Back to top
BrianH
Post subject:   PostPosted: Jun 08, 2006 - 07:27 PM
Registered Member
Registered Member


Joined: Mar 21, 2006
Posts: 13

OH, thank you, thank you, thank you! That did it! It works fine now. Nice plugin.

Thanks,
Brian
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jun 08, 2006 - 09:42 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Very cool, glad it's working. We had another thread where folks were looking to do the same thing and found that plugin.

BTW I'm going to move this post to the M4M forum.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits