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
posted 14 years ago
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.