[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Java best practices



On Wed, May 03, 2006 at 03:56:56PM -0300, Miguel Filho wrote:
> Another question is, how should I call my application without touch
> classpath? The Policy says that you cant change classpath, but if I
> run without pointing to log4j and other libraries, my program wont
> run. I was wondering if there are any problem creating a shell script
> that to the proper setup and call my application, located in
> /usr/share/java.

A shell script is the way to do. The policy just says that no
application (executable jars dont count here) may not depend on any
environment variable to run correct. BTW: the CLASSPATH variable is
ignored anyway with running jars with the -jar option.


Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/



Reply to: