Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javac, jar package does not exist error

807597Oct 17 2005 — edited Oct 18 2005
i am trying to import this package when trying to compile a simple java class from a Dos prompt (win2k), under jdk2 (1.4.2) using the javac fn.java command:

import javax.mail.*;

but get error app.java:8: package javax.mail does not exist.

i have the mail.jar file, but no matter where i put it, i still get the same compile error - does not exist.

i would greatly appreciate any suggestions on what i am doing wrong.
thanks, p.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2005
Added on Oct 17 2005
2 comments
2,082 views