Making our way to the jars...
From: Rico (ras_nas_at_yahoo.com)
Date: 02/28/05
- Next message: Hongyu: "Re: java program silent exit"
- Previous message: Brian Hetrick: "Re: Function pointers (Callback functions) in Java ?"
- Next in thread: Oscar kind: "Re: Making our way to the jars..."
- Reply: Oscar kind: "Re: Making our way to the jars..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 07:41:58 +0800
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.
- Next message: Hongyu: "Re: java program silent exit"
- Previous message: Brian Hetrick: "Re: Function pointers (Callback functions) in Java ?"
- Next in thread: Oscar kind: "Re: Making our way to the jars..."
- Reply: Oscar kind: "Re: Making our way to the jars..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|