Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

javax dot mail

Thread view: 
conrad - 29 Mar 2008 01:57 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.