See http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/classpath.html for information on setting the classpath. The JVM does *not* look for .jar files in specified directories; they must be listed explicitly.
Scott Nichol ----- Original Message ----- From: "Neha Srivastava" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 18, 2002 12:50 AM Subject: Re: classpath question hi, That means if i set the classpath upto lib directory only it will include all the classes in all the jars. but atleast it should work..which is not happening. which is this exercise directory? Thanks and Regards neha ----- Original Message ----- From: bheemesh To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 9:56 PM Subject: RE: classpath question Hi , To load only those jars which are required and declared in classpath. The iterpreter will look into these CLASSPATH info and load the respective classes. try executing 'd:\exercise> java -verbose MyClass this will display the class files loaded and from which jar. regards, Bheem -----Original Message----- From: Neha Srivastava [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 8:47 PM To: [EMAIL PROTECTED] Subject: classpath question hi all, Why do we have to set all the jar's in the classpath separately? why does it not work if i set classpath upto lib directory where i have all the jars? Thanks and Regards neha -------------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ---------------------------------------------------------------------------- ---- > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>