File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Servlet program using command prompt

 
Swapnil Sanghai
Ranch Hand
Posts: 41
Java Oracle Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
I am unable to compile the servlet class using command prompt.
When I compile it shows the error


cannot find symbol
import javax.servlet.*;


(and all other jar files related to the servlet)

i.e. it is unable to find the jar files.
I already set the environment varibles.
What may be the reason?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
This means that you didn't put the proper jar file in your compilation classpath. This has been discussed countless times in the Beginning Java forum. Please search there fro your answer.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic