Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 84105 invoked from network); 11 Mar 2003 14:58:56 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Mar 2003 14:58:56 -0000 Received: (qmail 9549 invoked by uid 97); 11 Mar 2003 15:00:38 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 9542 invoked from network); 11 Mar 2003 15:00:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Mar 2003 15:00:38 -0000 Received: (qmail 77154 invoked by uid 500); 11 Mar 2003 14:57:09 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 77097 invoked from network); 11 Mar 2003 14:57:09 -0000 Received: from mail1.netscalibur.it (HELO storage-1.netscalibur.it) (194.244.215.2) by daedalus.apache.org with SMTP; 11 Mar 2003 14:57:09 -0000 Received: from officinedigitali.it (213.174.161.132) by storage-1.netscalibur.it (6.5.019) (authenticated as mlowe@officinedigitali.it) id 3E6C31B50000A63E for struts-user@jakarta.apache.org; Tue, 11 Mar 2003 15:57:10 +0100 Date: Tue, 11 Mar 2003 15:57:07 +0100 Subject: Re: weird org.apache.struts.action does not exist Content-Type: text/plain; delsp=yes; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Mark Lowe To: "Struts Users Mailing List" Content-Transfer-Encoding: quoted-printable In-Reply-To: <3E6DF5BC.5000903@ribera.tel.uva.es> Message-Id: X-Mailer: Apple Mail (2.551) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N i'd read this =20 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html take the example ant project and use it as a starting point for any =20 java propjects you are doing.. This will save you all the messing =20 around with classpaths etc (you still have to set them in ant's =20 build.xml file however).. Go through the ant stuff to install it if you =20= haven't already. You will be able to drop any jar file in /WEB-INF/lib and it be placed =20= in your classpath. A few hours spent here will save a lot of time,,, This also gives you a =20= development envionment where source is always seperate to compiled =20 classes.. If you really just want to get something running now then > cd > vi .bash_profile add export CLASSPATH=3D$CLASSPATH:PATH_TO_STRUTS_JARS save and exit :wq start a new terminal session cheers mark Marted=EC, 11 mar 2003, alle 15:42 Europe/Rome, Guido ha scritto: > Try using ":" instead of ";" in your CLASSPATH if you are developing =20= > under Linux/UNIX. > > If this doesn't work, try putting the classpath within your javac =20 > statment: > > javac -classpath RegisterForm.java > > HTH > Guido. > > Tom Cat wrote: >> Hi, I am new to struts trying to learn something from Ted Husted's =20= >> book Struts in Action. >> I installed Tomcat and IBM JDK 1.4., then downloaded Ted's example =20= >> application register-complete.war (which is example app on struts =20 >> site too). It works fine but when I try to compile something using =20= >> Struts - I am in a big trouble. I tried to recompile one of Ted's =20 >> simple java files (setting CLASSPATH beforehand as this seems to be =20= >> the usual cause for the proble I get, as I learned from mailinglist =20= >> archives): >> [root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/=20 >> app> echo $CLASSPATH >> /usr/local/tomcat/webapps/register-complete/WEB-INF/lib/=20 >> struts_1_0_2.jar;.;/usr/local/tomcat;/opt/IBMJava2-131/lib >> [root]/usr/local/tomcat/webapps/register-complete/WEB-INF/classes/=20 >> app> javac RegisterForm.java >> RegisterForm.java:2: package org.apache.struts.action does not exist >> import org.apache.struts.action.*; >> ^ >> RegisterForm.java:4: cannot resolve symbol >> symbol : class ActionForm >> location: class app.RegisterForm >> public class RegisterForm extends ActionForm { >> ^ >> 2 errors >> Somebody, please help :( > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org