$PATH and $CLASSPATH are two completely separate variables. On POSIX $PATH is the list of directories of executables. Often these are directories ending in .../bin
In java, $CLASSPATH is the list of directories of to look for compiled classes (usually in .jar format). Often these are directories ending in .../lib The default Tomcat startup script adds all the necessary lib directories to the $CLASSPATH, so you shouldn't need to add them yourself unless you've changed anything. We use: export CLASSPATH=$JAVA_HOME/lib export PATH="/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/usr/local/sbin:/root/bin:/sbin" export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$CATALINA_HOME/bin:$PGBIN:$DSPACE/bin:$M2:$PATH cheers stuart On 06/02/11 02:57, Thornton, Susan M. (LARC-B702)[LITES] wrote: > Hmmm….can anyone else comment on this? What does everyone put in their > $CLASSPATH for DSpace? > > Thanks, > > Sue > > *//* > > *//* > > */Sue Walker-Thornton/* > > */Software Developer/Database Administrator/* > > */NASA Langley Research Center|LITES Contract/* > > */(757) 224-4074/* > > *From:*Alvaro Sandoval [mailto:alsando...@bcn.cl] > *Sent:* Thursday, February 03, 2011 3:31 PM > *To:* Thornton, Susan M. (LARC-B702)[LITES] > *Subject:* Re: [Dspace-tech] $PATH in Unix for DSpace > > Hi Susan: > > We only included dspace jar libraries, like this: > > CLASSPATH="/opt/instaladores/apache-log4j-1.2.15/log4j-1.2.15.jar:/opt/instaladores/commons-cli-1.1/commons-cli-1.1.jar:/opt/dspace-1.6.0-src-release/dspace-api/target/classes" > CLASSPATH="$CLASSPATH:/opt/instaladores/commons-dbcp-1.2.2/commons-dbcp-1.2.2.jar:/opt/instaladores/commons-pool-1.3/commons-pool-1.3.jar:/opt/instaladores/postgresql-8.1-412.jdbc3.jar" > CLASSPATH="$CLASSPATH:/opt/instaladores/javamail-1.4.1/mail.jar" > export CLASSPATH > > Where /opt/instaladores is an arbitrary directory where we downloaded > some classes. > By the way, we have DSpace 1.6.0 > > Regards, > Alvaro > > > El 03/02/11 17:15, Thornton, Susan M. (LARC-B702)[LITES] escribió: > > Ok great. Now what about $CLASSPATH? Is there any need to have > /dspace/lib in our $CLASSPATH? > > *//* > > *//* > > */Sue Walker-Thornton/* > > */Software Developer/Database Administrator/* > > */NASA Langley Research Center|LITES Contract/* > > */(757) 224-4074/* > > *From:*Alvaro Sandoval [mailto:alsando...@bcn.cl] > *Sent:* Thursday, February 03, 2011 12:48 PM > *To:* Thornton, Susan M. (LARC-B702)[LITES] > *Subject:* Re: [Dspace-tech] $PATH in Unix for DSpace > > Hi: > > You just need to include java, maven and ant paths. Here's a copy of our > PATH, running Dspace on Debian 5. > > PATH=/usr/local/java/jdk1.6.0_05/bin:/opt/apache-maven-2.0.8/bin:/usr/local/ant/bin > export PATH > > Regards, > Alvaro > > El 03/02/11 14:01, Thornton, Susan M. (LARC-B702)[LITES] escribió: > > Hi, > > Can someone tell me what needs to be in $PATH in order to run DSpace on > a Unix server? I was looking at how we’ve defined $PATH and I think we > may have some things in there we don’t need, including: > > /dspace/lib > > /dspace/bin > > /dspace-{version}-src-release > > We also have these directories in there also: > > /usr/postgres/{version}/bin > > /usr/local/pgsql/bin > > /usr/local/pgsql/lib > > I’m thinking we don’t need any of these in $PATH. > > We do, of course, have the locations of Maven, Ant, and Java in there. > > I would appreciate any input. > > Thanks a bunch, > > Best regards, > > Sue > > */Sue Walker-Thornton/* > > */Software Developer/Database Administrator/* > > */NASA Langley Research Center|LITES Contract/* > > */SGT, Inc.|130 Research Drive/* > > */Hampton, Va. 23666/* > > */Office: (757) 224-4074/* > > */Mobile: (757) 506-9903/* > > */Fax: (757) 224-4001/* > > */susan.m.thorn...@nasa.gov <mailto:susan.m.thorn...@nasa.gov>/* > > > > > > ------------------------------------------------------------------------------ > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > > Finally, a world-class log management solution at an even better price-free! > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > > February 28th, so secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsight-sfd2d > > > > > > _______________________________________________ > > DSpace-tech mailing list > > DSpace-tech@lists.sourceforge.net <mailto:DSpace-tech@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > > > > > -- > > Álvaro Sandoval Pizarro > > > > BCN, Biblioteca del Congreso Nacional de Chile > > Ingeniería y Desarrollo > > Fono (5632) 226 3981 > > > > http://www.bcn.cl/ > > > > > -- > > Álvaro Sandoval Pizarro > > > > BCN, Biblioteca del Congreso Nacional de Chile > > Ingeniería y Desarrollo > > Fono (5632) 226 3981 > > > > http://www.bcn.cl/ -- Stuart Yeates Library Technology Services http://www.victoria.ac.nz/library/ ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech