OK, this should be trivial, but is driving me crazy. I have an app that I built and tested in Eclipse. I then exported to a jar file. This app depends on a set of other jars, such as xbean.jar. So, I created a .bat file to run it:
set CLASSPATH=xbean.jar;xbean_
xpath.jar;
xmlbeans-q
name.jar;R
ebalanceCa
lculator.j
ar;maprRes
ultsXmlBea
ns.jar;map
rPortfolio
XmlBeans.j
ar;maprMod
elXmlBeans
.jar;maprC
onstraints
XmlBeans.j
ar;.;jsr17
3_1.0_api.
jar;
java -jar MaprXmlCmdLineClient.jar %1
When I run this bat file from a command line, it starts fine, but as soon as it references anything in another jar, I get a NoClassDefFoundError! I have checked and this "missing" class is in the xbean.jar file that is in my CLASSPATH for this command prompt window.
Any ideas what is causing this?! Thanks...Mark
Start Free Trial