If I have an application that utilizes javax.mail
then I imagine that I can do one of two things:
Include the jar file for javax.mail in a zip
file with my jar file and configure the classpath
appropriately to recognize both jar files.
Or, can a jar file include a jar file? In which
case, I just need to worry about a single
jar file and referencing it via classpath.
Thoughts?
--
conrad
Arne Vajhøj - 29 Mar 2008 02:04 GMT
> If I have an application that utilizes javax.mail
> then I imagine that I can do one of two things:
[quoted text clipped - 4 lines]
> case, I just need to worry about a single
> jar file and referencing it via classpath.
Jar files in same dir and a Class-Path directive in the
manifest of your jar file is the standard solution for
the problem.
Arne
Lew - 29 Mar 2008 05:24 GMT
conrad wrote:
>> If I have an application that utilizes javax.mail
>> then I imagine that I can do one of two things:
[quoted text clipped - 4 lines]
>> case, I just need to worry about a single
>> jar file and referencing it via classpath.
> Jar files in same dir and a Class-Path directive in the
> manifest of your jar file is the standard solution for
> the problem.
<http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#Main%20Attributes>

Signature
Lew
Roedy Green - 29 Mar 2008 07:09 GMT
>If I have an application that utilizes javax.mail
>then I imagine that I can do one of two things:
[quoted text clipped - 4 lines]
>case, I just need to worry about a single
>jar file and referencing it via classpath.
You might use an installer that puts the jar in the ext directory or
if your users are techies, just give them instructions on how to do
that as a prerequisite.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com