Java class files for tomcat, where? [message #1735581] |
Tue, 21 June 2016 06:11  |
Eclipse User |
|
|
|
Learning web server programming (java, tomcat) using the tutorial found on jsptut.com. When I come to 'Beans and Forms Processing' I run into trouble: Where in the project should I store the java class UserData.java definition file? And how to compile it within Eclipse? Finally, where should teh UserData.class file go?
A working solution found by trial-and-terror is to store the .java file under Java Resources/src/<package name>, mark the .java file and hit Run. This creates a .class file in the build/classes/<package name> directory. I copy this .class file to WEB-INF/classes and restart the server.
I run Eclipse Mars.2, JDK 1.8 and Tomcat 8 on a CentOS 6 host.
/jason
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.55516 seconds