aspose file tools*
The moose likes Beginning Java and the fly likes How to make executable JAR file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make executable JAR file?" Watch "How to make executable JAR file?" New topic
Author

How to make executable JAR file?

Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
My dilemma is I can create a executable jar file.
But when I run it, it can't pick up the classpath setting.
But it gave me ClassDefNotFound exception when use some external classes.
Did anybody see the same problem?
Is there any way to solve it?
Thanks in advance.


SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
You can set the classpath in the manifest.
Class-Path : <urls>
The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces. The application or extension class loader uses the value of this attribute to construct its internal search path.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make executable JAR file?