javax dot mail

C

conrad

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?
 
A

Arne Vajhøj

conrad said:
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.

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
 
R

Roedy Green

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.

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.
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top