R
Rico
D:\program files\Eclipse\workspace\FolderMonitor>java -cp D:\activation.jar;D:\m
ail.jar;D:\log4j-1.2.8.jar -jar folder*
Am I doing something wrong with the above command?
The 3 jars are in D:\ (of course) but I get NoClassDefFoundError:
javax/mail/Address
I started off with them all in the same folder as the jar I'm trying to
run. That also gave NoClassDefFoundError
When I move the jars to jre\lib\ext, things work fine.
I came across Invoker on Dawid Weiss's website and I do this:
java -jar Invoker.jar -cpalljars .\ -cpdir .\ <fully qualified classname>
Things work fine.
Why would both using the absolute path to the jars and placing them
in the current working directory still cause NoClassDefFoundError?
Rico.
ail.jar;D:\log4j-1.2.8.jar -jar folder*
Am I doing something wrong with the above command?
The 3 jars are in D:\ (of course) but I get NoClassDefFoundError:
javax/mail/Address
I started off with them all in the same folder as the jar I'm trying to
run. That also gave NoClassDefFoundError
When I move the jars to jre\lib\ext, things work fine.
I came across Invoker on Dawid Weiss's website and I do this:
java -jar Invoker.jar -cpalljars .\ -cpdir .\ <fully qualified classname>
Things work fine.
Why would both using the absolute path to the jars and placing them
in the current working directory still cause NoClassDefFoundError?
Rico.