package javax.mail does not exist. Please Help !

Hi all,

I am new to Java and I downloaded some sample application and when I try to compile it, I get an error:

"package javax.mail does not exist".

I've looked through forums and I know something is wrong with CLASSPATHS and that I also have to download the java mail package, but I dont know how to exactly fix this problem. I would appreciate very much if someone could help me, maybe by telling me the steps I need to take.

Thanks.

[467 byte] By [_Cih_a] at [2007-11-27 4:55:35]
# 1
hey,here are the first step :What sample application is this ?What are you using to compile it ?Rom
mangroviena at 2007-7-12 10:10:34 > top of Java-index,Java Essentials,New To Java...
# 2

Hey Rom,

Thanks for reply.

The sample application is an authentication module:

http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html

But I think this doesnt really matter, as the error I get is because I have manually added the : import java.mail.*; statement. (Maybe I had to mention it in the previous post). Because I want to add some mail client inside.

I am compiling it using the command: javac, from the commandline menu.

_Cih_a at 2007-7-12 10:10:34 > top of Java-index,Java Essentials,New To Java...