Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any Developer Using JavaWebServer2.0. please try to answer this

 
Sami Ather
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed Java Web server 2.0 on win 98. I have a strange problem wih it.
I have set my CLASSPATH in autoexec.bat as
set CLASSPATH = c:\JavaWebServer2.0\lib\servlet.jar;%CLASSPATH%
now If I try to compile a servlet, its gives me error ie javax.servlet.*; & javax.servlet.http.*; not found.
Now I tried to print my classpath from Java Program
System.out.println(System.getProperty("java.class.path"));
, when I executed this program it printed simple a "." . which means that classpath is not set.
then I made a change in autoexec.bat and set classpath as
set CLASSPATH=c:\JavaWebServer2.0\lib\servlet.jar;%CLASSPATH% ( removed spaces) & rebooted my machine
after rebooting, I tried to compile my servlet, and it got compiled, so now my CLASSPATH is set , but if now I try to execute
any java program ( the program that print the classpath at run time, upper program), it wont execute.
seems to me that setting my own CLASSPATH would override the internal classpath of JVM( invisible to user) , so
consequently , the java program wont execute. I am still having no problem in compiling the program
Any suggestion
Thanx in advance
Sami
 
NageswaraRao Karra
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello!
after setting classpath in autoexec and executing it,at dosprompt type set command.then observe the classpath settings
which will be displayed.i think there will be no (semicolon)space between two classpath settings.
so try in autoexec.bat the following
set classpath=%classpath%;C:\javawebserver2.0\lib\servlet.jar
hope this works
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
too bad Sun no longer supports JWS2.0, it was one of my favorites.
 
ramesh kumar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a terrible experience with JWS, as my servlets never refreshed after doing some modifications. I suggest u to change to someother server b4 u spend lot of ur time.
regards
Kumar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic