On Sat, 2003-06-14 at 17:12, Paul Tremblay wrote:
> This gets real tedious. And this is for just one application. 
> 
> I know with python, for example, you can just tell python to look in one
> folder for all the libraries. 
> 
> Is there a way to do this with java? Is there an easier way to create
> the CLASSPATH?

There are several ways.

1) You can invoke the application use -jar jarfile.jar, and the manifest
for the jarfile can set the classpath.

2) You can use ant, which which will let you set a classpath with
regexp's like "dir/*.jar".

3) You can write a short script using find and sed to do what ant does.

4) You can build jar files which aggregate various jars into a larger
jar file.

5) You can copy commonly used libraries into your $JAVA_HOME/jre/lib/ext
directory (this is the path for extensions), so that they'll get added
automatically.

--Chris


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to