Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Classpath problem in java?  RSS feed

 
akhilesh guptasah
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i give classpath to my servlet explicitly (through cmd) for some other package then it says it cant find javax.servlet package. Actually the servlet jar file path is set on systems variable.it runs fine when i compile without using any external package.and i want my servlet to use other packages(business logic)
 
Michael Angstadt
Ranch Hand
Posts: 278
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like the package you're using requires the servlet API. So, you must also include the servlet API on the classpath when compiling your application.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post the command line? And the error messagem?
 
Gajendra Tomer
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
classpath as a system variable overrides any other configuration....ensure to include servlet package into the same variable
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!