|Trouble with running java application [message #771035]
||Mon, 26 December 2011 05:03
Registered: December 2011
I need help with compiling the code in eclipse. I have looked around the web and thought that classpath was the problem and fixed it but i am still getting this error...
Exception in thread "main" java.lang.NoClassDefFoundError: Driver
Caused by: java.lang.ClassNotFoundException: Driver
at java.security.AccessController.doPrivileged(Native Method)
Can anyone help me understand further what I must do to solve this?
|Re: Trouble with running java application [message #772332 is a reply to message #772122]
||Thu, 29 December 2011 14:34
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
On 2011.12.28 20:26, Donovan Ng wrote:|
> Would like to ask further regarding your post..
> If I am missing a specific .class file for eclipse, how would I know
> which one is missing for me to place it on to eclipse?
> Any recommended ways? I apologize as I am don't normally use an IDE to
> compile my java files. Just wanted to try something new :) THanks!
Typically, you add .class files to Eclipse projects as JARs via Build
Path. You can hand-copy a .class file to a project, but then you have to
wire things up specially for that as dropping it into a subdirectory
with the .class files created by Eclipse compilation will also subject
it to being deleted, either by Eclipse (not necessarily) or ant (well,
the way I write it would delete it). In any case, it's not a very stable
As I don't grok exactly what you're trying to do, nor do I think I've
done what you're doing, it's hard to give experienced or knowledgeable
Give more details in your reply if you wish to pursue this.
Powered by FUDForum
. Page generated in 0.12703 seconds