But if I might offer a suggestion, it might be a really good idea to spend a little bit of time learning Ant. It's really ideally suited for this, and by having a script setup which will produce the proper classpath for your application, you can make sure that you don't have cases where all of a sudden things stop working. It's also easy to say things like "compile everything in this directory, and use all the .jar files in this other directory in the classpath".
Just a tip. It won't get you over the initial hangup, but it's probably something you should investigate for the future.
Kirk Wylie M7 Corporation
Caroline Jen wrote:
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/org/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]

