Hi Tref, To be honest I don't often concern myself anymore with the nitty-gritty details of the classpath since it seems to be used for compilation more than anything else - in fact I don't think Tomcat uses it all.
I use an IDE that I have pointed to the jar librararies I use and it obviously also knows my class output directory, when compiling it always manually specifies the classpath for the compile with a flag to javac (or in my case ojc.exe thew Oracle Java compiler), this will inlcuse all specified jar files and my class out put directory. In fact my system classpath (i just checked by typing echo %classpath%) is set to "." ha-ha! So if you do not have a decent IDE, then make a batch file that that runs javac for you specifying the classpth to use for that compile only - see my original mail for the syntax. Cheers Adrian PS: I assumed that you are on a wintel platform - apologies if I am wrong. but discussion is same, syntax might differ. > -----Original Message----- > From: Gare, Tref [SMTP:[EMAIL PROTECTED]] > Sent: 15 May 2002 09:12 > To: [EMAIL PROTECTED] > Subject: Re: Accessing self created packages in Tomcat3.3 > > I take your point Adrian, > > it's probably more a local system issue as we seem to be having a few of > them. However I'm getting increasingly confused about "correct" usage of > the classpath. I was running under the assumption that Tomcat would be > referencing all the web-inf\lib directories automatically. I'd heard that > it's not recomended to be adding every single reference into the system > classpath.. apart from the fact that it would grow huge there's the > portability issue. Have you any thoughts in this area? > > cheers > > Tref > > > -----Original Message----- > > From: Adrian Janssen [SMTP:[EMAIL PROTECTED]] > > Sent: Wednesday,15 May 2002 5:03 > > To: [EMAIL PROTECTED] > > Subject: Re: Accessing self created packages in Tomcat3.3 > > > > if your problems are at compile time then I suspect that it has very > > little > > to do with TOMCAT, are you sure that the > > TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils directory is > in > > your classpath? try something like: > > > > javac -classpath > > %classpath%;TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils > > someBean.java > > > > does that help? > > > > Cheers -- ********************************************************************** The Truworths e-mail facility may not be used for the distribution of chain letters or offensive email. Truworths hereby distances itself from and accepts no liability for the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
