question about jar-packaged files and the classpath

J

Jeff Gaynor

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
 
C

Carl Howells

Jeff said:
==> 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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top