WTP no longer auto generates class files? [message #659313] |
Fri, 11 March 2011 23:30  |
Kun Niu Messages: 6 Registered: March 2011 |
Junior Member |
|
|
Hi all,
I tried to use wtp to develop web application.
I created a new dynamic web project.
I wrote a Servlet by myself.
Then I ran the servlet, but it showed the following message:
java.lang.ClassNotFoundException
I can't find the class file under "build/classes".
But I can see the jsp web page.
I wonder if anyone here can tell me how to make eclipse auto generate these class files for me.
I also tried to export the war file.
And I failed to see the servlet.
I could see that there's classes folder under "WEB-INF".
But the folder is empty..
Any hint is welcome.
[Updated on: Sat, 12 March 2011 12:17] Report message to a moderator
|
|
|
| Re: WTP no longer auto generate class files? [message #659314 is a reply to message #659313] |
Fri, 11 March 2011 23:33   |
Kun Niu Messages: 6 Registered: March 2011 |
Junior Member |
|
|
| Kun Niu wrote on Fri, 11 March 2011 23:30 | Hi all,
I tried to use wtp to develop web application.
I created a new dynamic web project.
I wrote a Servlet by myself.
Then I ran the servlet, but it showed the following message:
java.lang.ClassNotFoundException
I can't find the class file under "build/classes".
But I can see the jsp web page.
I wonder if anyone here can tell me how to make eclipse auto generate these class files for me.
I also tried to export the war file.
And I failed to see the servlet.
I could see that there's classes folder under "WEB-INF".
But the folder is empty.
Any hint is welcome.
|
BTW, I'm using Eclipse Helios. And I downloaded the latest Enterprise package from the eclipse website. I'm using Tomcat 6.0.
[Updated on: Fri, 11 March 2011 23:43] Report message to a moderator
|
|
|
|
| Re: WTP no longer auto generate class files? [message #659351 is a reply to message #659348] |
Sat, 12 March 2011 11:56   |
Kun Niu Messages: 6 Registered: March 2011 |
Junior Member |
|
|
Hi Ed,
Really appreciate your reply.
I'm sorry for the inconvenience I caused.
In fact, I checked "auto generate" option several times.
I tried to "check" it or "uncheck" it.
I also tried to "close-run" or "restart" eclipse.
None work for me.
In fact, I think eclipse compiles the code for me.
If I delete an import library, eclipse will detect and show me the error.
Can I manually generate the class file if I can't find the class file?
I found that Netbeans can do it.
But I can't find such function in eclipse.
Another problem I found that this happens only on my Windows7 platform.
Eclipse works for me on Linux platform.
[Updated on: Sat, 12 March 2011 12:05] Report message to a moderator
|
|
|
|
| Re: WTP no longer auto generate class files? [message #659363 is a reply to message #659359] |
Sat, 12 March 2011 17:02   |
Kun Niu Messages: 6 Registered: March 2011 |
Junior Member |
|
|
Hi Ed,
Yes. I checked and unchecked "auto build" from the menu several times. I also restart eclipse several times in hope of that eclipse can automatically generate the class file for me. But I failed. I also tried "Clean" the project in hope that eclipse can generate the class for me. But no matter what I do, I can't find the final class file. I don't want to change the ouptput folder.
[Updated on: Sat, 12 March 2011 17:02] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01890 seconds