question about jar-packaged files and the classpath

Discussion in 'Java' started by Jeff Gaynor, Jul 14, 2004.

  1. Jeff Gaynor

    Jeff Gaynor Guest

    I am trying to distribute a jar-packaged file. The jar file itself is being
    made fine, but when users attempt to run it with the -jar option, none of the
    supporting files in their classpath seem to be found. I can't find mention
    made on Sun's site about this. So here is the question:

    ==> When invoking files with the -jar option, is the current classpath
    ignored?

    If not, then why I am getting all these class not found exceptions?

    Thanks

    -- j
     
    Jeff Gaynor, Jul 14, 2004
    #1
    1. Advertising

  2. Jeff Gaynor

    Carl Howells Guest

    Jeff Gaynor wrote:
    > ==> When invoking files with the -jar option, is the current classpath
    > ignored?


    Any external classpath is ignored. The classpath defined by the jar
    file is used instead.
     
    Carl Howells, Jul 14, 2004
    #2
    1. Advertising

  3. Jeff Gaynor

    Jeff Gaynor Guest

    Also just found this mentioned at

    http://mindprod.com/jgloss/jar.html

    Thanks!

    On Wed, 14 Jul 2004 10:52:47 -0700, Carl Howells wrote:

    >Jeff Gaynor wrote:
    >> ==> When invoking files with the -jar option, is the current classpath
    >> ignored?

    >
    >Any external classpath is ignored. The classpath defined by the jar
    >file is used instead.
     
    Jeff Gaynor, Jul 14, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flip
    Replies:
    3
    Views:
    7,337
    Tony Morris
    Feb 9, 2004
  2. numlock
    Replies:
    8
    Views:
    432
    numlock
    Jul 29, 2004
  3. Gabe
    Replies:
    3
    Views:
    1,093
  4. Replies:
    2
    Views:
    5,471
    Ross Bamford
    Apr 29, 2005
  5. Oliver Wong
    Replies:
    12
    Views:
    1,472
    Roedy Green
    Dec 10, 2005
Loading...

Share This Page