Problem using ClassLoader::loadClass() from an executable JAR.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, June 3, 2002 02:36 AM

I'm trying to build an executable JAR with some 3rd party
JAR files referenced through the Class-Path entry in the manifest.


However I consistently get ClassNotFoundException when trying to do ClassLoader::loadClass() on a class in the 3rd party JAR files. If I explicitly instantiate it, it works.


The ClassLoader used is ClassLoader::getSystemClassLoader()


Ideas are very welcome!

Re: Problem using ClassLoader::loadClass() from an executable JAR.

Posted By:   Anonymous  
Posted On:   Monday, June 3, 2002 03:13 AM

I figured it out...
The META-INF/MANIFEST.MF file had Unix EOL's.
Changed to M$ EOL's and all is well.


Seems like a daft bug, but hey!

About | Sitemap | Contact