put commons-scaffold.jar folder on your classpath before compiling e.g. SET CLASSPATH=DirectoryWhichContainsCommons-Scaffold.jar;%CLASSPATH% Hth, Martin ----- Original Message ----- From: "Caroline Jen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 20, 2003 6:50 PM Subject: Java Compiler Cannot Find the Required JAR File in the Classpath
> I posted this problem before. Max and Carey answered > my post right away. I tried and tried .... I must be > missing something. > > I really do not understand why all of a sudden that > the java compiler cannot find the required JARs in the > classpath. I have done some similar compilation > before successfully. My head is not sober enough to > pinpoint the problem this time. > > I am doing the compilation manually (I am not using > ANT or any IDE). > > 1. I have the commons-scaffold.jar in my > $TOMCAT_HOME/webapps/PracticeVersion/WEB-INF/lib > folder. > > 2. I have the struts.jar in both > $TOMCAT_HOME/webapps/PracticeVersion/WEB-INF/lib > folder and j2sdk1.4.1_02/jre/lib/ext folder > > 3. in my java program (Bean.java), I > import org.apache.commons.scaffold.text.ConvertUtils; > import > org.apache.commons.scaffold.util.ProcessBeanBase; > import org.apache.commons.scaffold.lang.Tokens; > > 4. I first set the classpath > C:\>set > CLASSPATH=C:\jakarta-tomcat-4.1.18-LE-jdk14/webapps/PracticeVersion/WEB-INF/ src/java;%CLASSPATH% > > then, I go to the folder where Bean.java is > > C:\>cd > jakarta-tomcat-4.1.18-LE-jdk14/webapps/PracticeVersion/WEB-INF/src/java/org/ apache/artimus/article > > then, I try to compile and put the class file in the > destination folder > > C:\jakarta-tomcat-4.1.18-LE-jdk14/webapps/PracticeVersion/WEB-INF/src/java/o rg/apache/artimus/article>javac > -d > C:\jakarta-tomcat-4.1.18-LE-jdk14/webapps/PracticeVersion/WEB-INF/classes > Bean.java > > But, I get compilation error: > > package org.apache.commons.scaffold.text does not > exist > package org.apache.commons.scaffold.util does not > exist > package org.apache.commons.scaffold.lang does not > exist > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

