I have an application (Calc.class etc) it's a calculator, that uses
jep212.jar ("Java Mathematical Expression Parser" from
http://www.singularsys.com/jep/)
WinXP, path is : %path%;C:\j2sdk1.4.0._01\bin;. (as it should be)
And now from the command-line(dos) or a batch file:
java Calc
(apllication Calc works, but jep212 doesn't "load" : NoClassDefFoundError
org/funk/jep/JEP)
another try:
java -cp %path%;jep212.jar;. Calc
YES! works perfectly!
I put my own classes in a jar (Calc.jar) with MANIFEST.MF) , and
java -cp %path%;jep212.jar;. -jar Calc.jar
NoClassDefFoundError
when i use JDKCommander (http://www.geocities.com/jdkcommander/)(excellent
stuff!) I never have problems, even whitout a classpath specified.
When I put jep212 in C:\j2sdk1.4.0._01\jre\lib\ext (as it should be)
java Calc >>>NoClassDefFoundError
java Calc -cp %path%;C:\j2sdk1.4.0._01\jre\lib\ext\jep212.jarNoClassDefFoundError
Why do I have these ">>>NoClassDefFoundError" in the first place, since the
jep212.jar are inC:\j2sdk1.4.0._01\jre\lib\ext or even in the working
directory, and my own classes are always found. My other applications (for
instance database-appl that must loads drivers) show the same problems.
Don't understand it anymore!
Sorry to bother all of you;
Kowey
ko***@hotmail.com