Posted and emailed:
Naresh Agarwal said:
Hello,
If I put a Jar file in jre/lib/ext, should all of its dependent jar
files must be in jre/lib/ext only?
Or I can put a jar file in jre/lib/ext and its dependent jar files in
classpath??
thanks & regards,
Naresh Agarwal
I thought my previous reply to this question was reasonably clear.
I'll reword it slightly and try again.
"Thanks to a response in this group and extensive googling I have
discovered two well kept secrets. The first is, if you launch your
application from a jar file, the jar file itself is the source of all
user classes and other user class path settings are ignored. The
second is that you can specify a space separated classpath in the jar
manifest file on a line beginning "Class-Path:" which will be used to
locate classes and resources.
No doubt Sun would deny they are secrets because they are documented
in the -jar option of the java command and in the Jar Manifest
Specification respectively but a tutorial on deploying Java
applications using jars would have been a big help."
If the above needs rewording to make it understood I would appreciate
some feedback. Having spent a couple of frustrating days finding the
information I would like to respond with a lucid post when others have
the same difficulty. Perhaps someone would like to put a tutorial on
their web site - Roedy?, Andrew?