File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes How to use JavaMail in NetBeans 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to use JavaMail in NetBeans 1.4" Watch "How to use JavaMail in NetBeans 1.4" New topic
Author

How to use JavaMail in NetBeans 1.4

Amitav Anand
Ranch Hand

Joined: Sep 22, 2003
Posts: 46
Hi ,
I am totally new to this NetBeans IDE. So please help me out for the same.
Actually I have got both the .jar files( mail.jar and activation.jar), which are required to implement the JavaMail API.
But unfortunately I don't know how to go about it.
I mean where to put those JAR files.
Its showing compile time error at the following import statements:

import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;

I got to know from somewhere that CLASSPATH is supposed to be set for these two JAR files..
But I don't know how to set the classpath in the NetBeans 4.1..
I tried to set the CLASSPATH in the catalina.bat file, which is under C:\NetBeans4.1\enterprise1\jakarta-tomcat-5.5.7\bin

But unfortunately its not working...

please help me out as quickly as possible.

Thanking in anticipation..

Amitav Anand
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Moving to our IDE forum, where it really belongs...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
And please don't crosspost. I deleted your posts from the "Servlet" and "Other Products" forums, as they were off topic there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use JavaMail in NetBeans 1.4