mail.jar could not be found, Netbeans

java, netbeans, netbeans-7

Solution

The JavaMail API is packaged within `javax.mail` as you mentioned.

In response to your questions:

Is this an standard java library?

It is optional with Java SE and is included with Java EE. This is from Oracle's documentation on JavaMail API.

If so, where do I find it?

You can download the JavaMail API JAR from Oracle: JavaMail API

I downloaded JavaMail 1.4.5. It comes down as a ZIP file, and there is a `mail.jar` file contained within the `javamail1_4_5.zip` file.

The `mail.jar` contains the JavaMail API and implementation.

and how do I link it into my netbeans project?

Since I don't have any specific information or details on your Java project, I couldn't give you any more information on which exact version of JavaMail API to download and how to integrate it into your NetBeans project. However, you should be able to get almost any modern version of the JavaMail API from the link I provided above.

Problem

Checking out a java project, I am alerted mail.jar could not be found. I think this has something to do with the `javax.mail` library but I am not very familiar with java. Is this an standard java library? If so, where do I find it? and how do I link it into my netbeans project?

Original source