Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Classpath when running with the -jar option?

Thread Tools

Re: Classpath when running with the -jar option?

Phil Hanna
Posts: n/a
On Mon, 23 Jun 2003 08:02:48 GMT, "Sergio Juan"
<(E-Mail Removed)> wrote:

>I have an application in a single jar that works fine. Now I'm adding some
>jars for validations (jakarta validation and oro) and once the jar is
>compiled I cannot find how to pass the classpath to the execution command.

In the manifest of your jar file, add a Class-Path line:

Class-Path: jar1.jar jar2.jar ...
Phil Hanna
Author of JSP 2.0: The Complete Reference
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.classpath file instead of the CLASSPATH Environment variable. Java 2 03-02-2008 08:19 AM
problem compiling project, classpath in xml ".classpath" "<classpathentry...>" Java 2 03-02-2007 12:37 PM
while using javac -classpath some.jar (Where does classpath get stored?) Gabe Java 3 08-27-2004 07:02 PM
CLASSPATH, -cp and -classpath misunderstanding? Flip Java 3 02-09-2004 10:09 PM
set classpath when running tomcat as a service Andy Fish Java 1 12-04-2003 11:53 AM