views:

34

answers:

3

Hey!

I have a problem with my program. I develop in Netbeans, and when i run the program it is working fine. i built it, created a *.jar file, and updatet it in my JNLP file.

here comes the trouble. as i'm using javax.mail.* in my program, the jnlp package just ignores all parts of it.

Just to be clear, i'm working on a mail client. now i can check the numbers of the mails in the inbox. that is what the program ignores in JNLP.

Thanks for any help.

A: 

javax is a J2EE package. It is to the left after the corner and 50 miles away from JNLP

RocketSurgeon
and can u offer me a way to run this program on my computer without netbeans and command prompt?
Hectai
+1  A: 

Incorporate a javamail implementation. The Apache Geronimo implementation is convenient from an licensing standpoint. That is, get a JAR file containing an implementation of javax.mail (other than the one built into j2ee) and package that into your JNLP package.

bmargulies
and how do i do that? sorry i'm a newbie in JAVA yet, it is for my school exam.
Hectai
Well, you download it, you add it to your classpath ... and then you need to do something I know nothing about: include it in the JNLP package.
bmargulies
A: 

I think all you need to do is to sign java mail implementation (either native or some 3rd party) JAR's, add them to your JNLP file:

<resources>
   <jar href="mail-jar1"/>
   <jar href="mail-jar2"/>
   <!-- more -->
</resources>

...and then drop them along with your main JAR to your web server of choice.

parxier