• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use classes from a non executable jar in an executable jar  RSS feed

 
Jason Ricles
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to uses classes from a non executable jar called noexec.jar in an executable jar called exec.jar. With no defined manifest in the nonexec jar and a manifest in the exec jar. The folder structure where the jars are held look like so.



With the class path defined in the manifest for the executable jar as . However every time I run , I get . Does anyone what even though I am including nonexec in my class path why the classes contained within the jar are not being found?

This is the manifest file
 
Campbell Ritchie
Marshal
Posts: 56553
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Is there really a stop after the name of the other .jar in the manifest file (line 2)?
There are conventions about naming things in Java, for example, Classes Always Start With A Capital Letter. You can read about them here (but that page is quite old). There are good reasons for sticking to those conventions; when we see you write Foo we know you mean the class. Names like start are confusing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!