Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » eporting runnable jar with mail api
eporting runnable jar with mail api [message #253936] Sun, 15 June 2008 09:31 Go to next message
Eclipse UserFriend
Hi,
I have an application that uses mailapi . I want to jar it as a runnable
jar. The problem is that I've read that the mailapi jar should not be
extracted
( http://java.sun.com/products/javamail/FAQ.html#servletSecuri tyManager). How
can I get around this?
Thanks,
Zohar.
Re: eporting runnable jar with mail api [message #253961 is a reply to message #253936] Mon, 16 June 2008 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

zohar wrote:
> Hi,
> I have an application that uses mailapi . I want to jar it as a runnable
> jar. The problem is that I've read that the mailapi jar should not be
> extracted
> ( http://java.sun.com/products/javamail/FAQ.html#servletSecuri tyManager).
> How can I get around this?

In your exported JAR manifest, you can include the mail JAR on the
classpath and then ship the mail JAR with your own.
For more info on the manifest, see
http://java.sun.com/docs/books/tutorial/deployment/jar/

Hope this helps,
Eric
Re: eporting runnable jar with mail api [message #253969 is a reply to message #253961] Mon, 16 June 2008 10:21 Go to previous messageGo to next message
Eclipse UserFriend
I use the (new?) "export runnable jar file" option, and I wondered whether
it has an option to designate any of the jars as such which cannot be
extracted, but rather needs to be referenced in the classpath. Any idea?
Thanks for the reply.

"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:g35rva$1kc$2@build.eclipse.org...
> zohar wrote:
>> Hi,
>> I have an application that uses mailapi . I want to jar it as a runnable
>> jar. The problem is that I've read that the mailapi jar should not be
>> extracted
>> ( http://java.sun.com/products/javamail/FAQ.html#servletSecuri tyManager).
>> How can I get around this?
>
> In your exported JAR manifest, you can include the mail JAR on the
> classpath and then ship the mail JAR with your own.
> For more info on the manifest, see
> http://java.sun.com/docs/books/tutorial/deployment/jar/
>
> Hope this helps,
> Eric
Re: eporting runnable jar with mail api [message #254113 is a reply to message #253969] Fri, 20 June 2008 11:47 Go to previous message
Eclipse UserFriend
Originally posted by: benno_baumgartner.ch.ibm.com

zohar wrote:
> I use the (new?) "export runnable jar file" option, and I wondered
> whether it has an option to designate any of the jars as such which
> cannot be extracted, but rather needs to be referenced in the classpath.
> Any idea?
> Thanks for the reply.

Hi Zohar

There is no such option. The idea of the runnable jar exporter is that
you get one jar containing all the required code/resources. Maybe this
bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=219530 will solve
your problem, see comment 24 there.

HTH
Benno

>
> "Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
> news:g35rva$1kc$2@build.eclipse.org...
>> zohar wrote:
>>> Hi,
>>> I have an application that uses mailapi . I want to jar it as a
>>> runnable jar. The problem is that I've read that the mailapi jar
>>> should not be extracted
>>> ( http://java.sun.com/products/javamail/FAQ.html#servletSecuri tyManager).
>>> How can I get around this?
>>
>> In your exported JAR manifest, you can include the mail JAR on the
>> classpath and then ship the mail JAR with your own.
>> For more info on the manifest, see
>> http://java.sun.com/docs/books/tutorial/deployment/jar/
>>
>> Hope this helps,
>> Eric
>
Previous Topic:renaming behavior is strange for classes
Next Topic:Deadlock indication in debugger
Goto Forum:
  


Current Time: Mon Jun 02 12:46:47 EDT 2025

Powered by FUDForum. Page generated in 0.85073 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top