Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

Servlet program using command prompt

 
Swapnil Sanghai
Ranch Hand
Posts: 41
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
Pie
Posts: 65115
89
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.
 
    Bookmark Topic Watch Topic
  • New Topic