• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic