Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Simple CLASSPATH problem for compilation of servlets in JWS2.0

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed Java Web Server on win98.
In order to compile any servlet, one has to set classpath as c:\JavaWebserver2.0\lib\servlet.jar
If I set this variable in my autoexec.bat,like set CLASSPATH = c:\JavaWebServer2.0\lib\servlet.jar;%CLASSPATH% now If I try to compile the applet
javac HelloWorld.java
compiler gives me error - javax.servlet.*; &
javax.servlet.http.*; not found
but if on commmand line I type
javac -classpath c:\JavaWebServer2.0\lib\servlet.jar HelloWorld.java
then servlet will compile corectly and can be executed on server any idea what is wrong in setting classpath in autoexec.bat file Thanx in Advance
Sami
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do u know after setting the autoexec.bat file u have to restart the computer or run autoexec.The other solution is set the classpath directly from the dos prompt.Write the command
set classpath="%classpath%;JWS.../lib/jsdk.jar". Probably this will help you.
 
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic