Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Executing from NetBeans using packages

807597Feb 22 2005 — edited Feb 23 2005
Hi,

I've been using my own custom Ant scripts within NetBeans to compile code, generate various descriptors and create archive files. I really like using Ant; the only reason I even use an IDE is for editting--it's nice having its spell checking functionality, etc. However, to execute and debug code, I go straight to the command prompt and run my jar. But now I'd like to take the next step: execute and debug un-jarred code within NetBeans.

Executing code works fine within NB if I don't use packages. However, when I use packages, I get NoClassDefFoundErrors. I've mounted every directory that I could think of and added them all to my project. That would mean everything is in the Classpath right?

Can someone please walk me through the process? Also, should I create an Ant task to execute my code from within the IDE?

PGynt

PS--I've searched the NB website, but there is just too much stuff to wade through. And of course, I've searched the forums here too.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2005
Added on Feb 22 2005
9 comments
128 views