javax.mail in a client?

Can I use the javax.mail.* classes in an application using the standard JRE? I know that these classes are part of J2EE, but can I use them separately or do I need to deploy everything else in J2EE? Surely not? ???

I want to deploy a simple GUI mail client without resorting to the low-level Socket class that you get in J2SE.

Generally, what are the licensing restrictions for all of the J2EE javax.* packages that you don’t get in J2SE?

20thCB

Handily you can ship just the javax.mail packages in a jar and it’s all nice and self-contained. AFAIK the javax.mail packages are entirely freely redistributable as long as you include the pointless license text file with them.

Cas :slight_smile:

Just go to the java.sun.com website and find their “list of java technologies” which I think is just a combobox. Select “java mail API” or similar and you’ll find you can get it all without even having heard of J2EE.

Aha so it is. I should look harder!