• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Servlet compile problems

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my jsdk.jar set in my classpath
as CLASSPATH=C:\JDK1.1.8\LIB\CLASSES.ZIP;c:\jsdk2.0\lib\jsdk.jar
and my path set to SET PATH=C:\JDK1.1.8\BIN;c:\jsdk2.0\bin
But still i get a compile error of HTTP Servlet not found,when i try compiling my servlet. It is not able to recognize, the jsdk.jar set in my classpath. However my pure java code compiles clean, proving that the compiler is able to pick up the classes.zip file in the same classpath. Then why not JSDK.JAR??
Moreover if i do the following on my DOS prompt, i get a clean compile.
c:\jsdk2.0\examples> javac -classpath "c:\jsdk2.0\lib\jsdk.jar";"c:\jdk1.1.8\lib\classes.zip" SimpleServlet.java
Why is this happening?,if it can recognize jsdk.jar here,why not when the same thinng is in the classpath.
I cannot see any logical reasoning to this
need help!!!1
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rupa,
The same prob i encountered few days ago . Initially i did the same thing as u did by taking classpath option with javac. Solution to this, whatever classpath u've in ur Autoexec.bat , give it a prefix of set , i.e. ,
set classpath = c:\jsdk2.0\lib\jsdk.jar;
Run the autoexec .
let me know if it works at ur place, since i've no reason , why after prefixing "set" it works ?
from ,
vikram .
 
Rupa Kalidoss
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it still does not work!!!1
i went to the autoexec file and prefixed classpath with SET
and it now looks like set classpath=c:........
is there something else i should do?//
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'm not working with 1.1.8 and the JSDK, but since the servlet classes are all "standard extensions" shouldn't the jsdk.jar be in the /lib/ext/ directory.
Jar files in that directory are automatically included with Java 1.2 - I don't remember if this is true about 1.1.8
 
Vikram Deshmukh
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well , i actually havent seen the fact that u r using JDK 1.1.8.
Since i've heard , well not experienced, u must have JDK 1.2.2 , thats what i'm using .
If u get JDK 1.2.2-win install it, & try , if it works as i suggested, then let me know ,
bye ,
from,
vikram .
 
A feeble attempt to tell you about our stuff that makes us money
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic