Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: ClassPath


Message #1 by "bradd" <jun_p@m...> on Fri, 5 Jan 2001 02:32:55 -0000
you cant just add servlet.jar to your classpath without specifying the exact
path to it. try

set classPath = e:\JDK1.3\jre\lib\rt.jar;e:\jswdk1.0.1\(rest of path
to)servlet.jar;classes;% CLASSPATH%

you need to specify the exact path. Also remember that if you are adding the
jar file to the lib directory it may not work because your system is using
another jre. The lib thing is a good idea but it often does not work because
of the multiple jre's on your system, especially in internet/browser work
where browsers often have their own JVM etc

chanoch

-----Original Message-----
From: bradd [mailto:jun_p@m...]
Sent: 05 January 2001 02:33
To: Servlets
Subject: [servlets] ClassPath


i just download and installed jswdk1.0.1 and save to e:\jdk1.3...i did set
my classpath and eventually made a batch file like this....

path = e:\JDK1.3\bin 

but the thing here is when i tried to run my program in JCreator (my text
editor)...package import.javax.servlet can't be find and also the
httpservlet..i did also tried to run it in msdos but the thing didn't work
too.......can someone help me out with this problem?? do you think my
settings for classpath is correct or something is missing.........by the
way, my JCreator works with my other program.....can someone help me out
there?? many thanks in advance

--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to servlets as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-servlets-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index