• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
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 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
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
too bad Sun no longer supports JWS2.0, it was one of my favorites.
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic