This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi everybody, i am new to servlets. i have some basic servlet prog which i have tried to execute in my system. but it reported saying that servlets packages are not found. can someone please tell me which sdk should i install in my system to run my servlet programs.. please provide links if any.. thanks in advance;
There is no way I can compile the servlets. Before I set the pathes, that was a variable called Path. So, to compile my Java programs I did this way:
JAVA_HOME C:\Arquivos de programas\Java\jdk1.6.0_07\bin Path "lots of things";%JAVA_HOME%\\bin
Then, I installed Tomcat but I can�t compile the servlets classes. I put the Tomcat on C:, so the path to servlet-api.jar is this:
C:\Tomcat6.0\lib\servlet-api.jar (I was surprised that there was no common directory like the FAQ said)
So, I don�t know what to do. I tried to put this path on the variable Path above, in the JAVA_HOME and I created a new variable too, but none has worked. What I did wrong? Thank you very much guys, and sorry for some grammar mistakes. I�m Brazilian and I�m learning English toghether with servlets (laughs).
I tried to put this path on the variable Path above, in the JAVA_HOME and I created a new variable too, but none has worked.
Set the path (to your servlet-api.jar) in the CLASSPATH environment variable(create a new one if you don't have one). Then you will be able to compile your servlets [ October 09, 2008: Message edited by: Vijitha Kumara ]