This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I've installed J2SE 1.4, J2EE 1.3 and tomcat 5.0, i think i configure them right, cause examples run very well. but when i write my own code, i cannot compile it at all, the problem is it cannot distinguish all related symbols. prompt msg like: package javax.servlet does not exist, cannot resolve symbol class HttpServlet.
Another question is how can i run my own servlet program, i generated one from JBuilder, and copied the class file to <tomcat-home>\webapps\servlets-examples\WEB-INF\classes, but the server canot find it(resource not available).
There are some hosts support JSP and servlet, how can i deploy my program on this kind of host. what should i pay more attention when i developing.
Are you doing all this through JBuilder or on the command line? Have you tried just creating a HelloWorld servlet and compiling that?
Note that Tomcat doesn't pay any attention to the CLASSPATH environment variable when running web apps.
Joined: Nov 13, 2003
i set this in the environment variables of WinXp, and i cannot compile a HelloWorld servlet at all, although i can run servlet with tomcat. Have no idea why is that
Joined: Aug 02, 2004
So you set the CLASSPATH through Control Panel in XP, but how are you compiling? The XP environment CLASSPATH is only useful if you're compiling from the command line, not from JBuilder.
If you're compiling from the command line can you please list the steps you go through, state what is says when you run "echo %classpath%" and the exact error message you get in full when you try to compile.
[Edit: You could also try specifying the classpath on the command line, e.g.:
Note the .; at the beginning, though I don't think it's significant in this case.
If you're compiling using JBuilder, look up how to set the CLASSPATH in the JBuilder help.