Bookmark Topic Watch Topic
  • New Topic

Servlet program using command prompt  RSS feed

 
Swapnil Sanghai
Ranch Hand
Posts: 42
Java Oracle Tomcat Server
  • 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
Posts: 65964
140
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!