This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I'm really new to this jsp. I've installed jdk and tomcat server. Configured the server to point my jdk/bin also. when I ran my first program to display date I'm getting this error-- org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated. C:\jakarta-tomcat-3.3.2\work\DEFAULT\Practice\first_1.java:10: Undefined variable, class, or package name: java java.util.Date X = java.util.Date(); ^ can someone help me with this. Thanks, JS
1) C:\jakarta-tomcat-3.3.2\ First thing you'll want to consider is not using this version of Tomcat. It is *very* old.
Tomcat is up to 4.1.30 and 5.0.19 for the Servlet 2.3 and 2.4 spec.
2) "configured the server to point to jdk/bin directory" ?? How'd you do that? It's probably a tomcat 3.x thing, but for newer versions of Tomcat, your JAVA_HOME environment variable should point to your JDK's 'home' (root) directory, not jdk/bin directory.
3) Don't touch your CLASSPATH. Tomcat does *not* use the system classpath. It uses JAVA_HOME and either TOMCAT_HOME or CATALINA_HOME (depending on the tomcat version).
Also, your JDK should be a recent version (not lower than 1.3.1)