File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans deletes class files on RUN but not on Clean And Build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans deletes class files on RUN but not on Clean And Build" Watch "Netbeans deletes class files on RUN but not on Clean And Build" New topic
Author

Netbeans deletes class files on RUN but not on Clean And Build

Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Hi!

I have a servlet file called GetArea.java in /Source Packages/com/companyname/template/ and when I do a Clean and Build in Netbeans, this file is compiled into .class file in the \build\web\WEB-INF\classes\com\companyname\template directory. I have checked it and it is in the directory and the capitalization is correct.

But when I do a RUN, SHIFT-F6, this file gets deleted by Netbeans and it is no longer in the directory. I get an exception: javax.servlet.ServletException: Wrapper cannot find servlet class com.companyname.template.GetArea or a class it depends on.

root cause: java.lang.ClassNotFoundException: com.companyname.template.GetArea.

My web.xml file is:



Can anyone help? Thanks.
Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Anybody?
Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Anybody with the same problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans deletes class files on RUN but not on Clean And Build