Ok the subject doesn't really tell my problem exactly:
I am creating a program under JBuilder/Windows XP that I wish to run under
Java 1.3. It uses a couple of
EJB's from
JBoss and Jakarta POI.
The ejb's are in a jar file nmmg.jar. In my classpath are:
nmmg.jar (contains the EJB's)
jbossall-client.jar
poixxx.jar
log4j.jar (seems jboss needs it)
If I compile the code (only 3 java files) using the 1.3 jdk under linux without making a jar file, it runs just fine:
$ java com/nmmg/eft/Program
<nice happy program output here>
If I create an Application Jar in JBuilder and try to run it, I get NoClassDefFoundError: javax/ejb/FinderException. This class is in my path (jar -tf jbossall-client.jar finds javax/ejb/FinderException). The manifest has nothing except version and Main-Class properly pointing to my class.
$ java -jar Program.jar
<NoClassDefFoundError>
If I create HelloWorld.jar, containing no dependencies, it runs just fine.
I've added everything but the kitchen sink to classpath. I've tried reordering classpath (dunno why - that's how desparate I was).
I've about run out of ideas.
Thanks for any ideas,
Mark