Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using java1.6 without using any IDE.Now i want to use java Mail API for my purpose.So, i copied Mail.jar into
d:\externaljar
folder.

And also i have set the classpath as set classpath=%classpath%;d:\externaljar;

my jdk installation folder is : c:\programfiles\jdk1.6

But i faced `package javax.mail does not exist during compilation.`

Please Guide me get out of this issue...
Posted

WHY?

WHY U NO IDE?

Use Eclipse or Netbeans. both are free Both will guide you. Both will not write your code - but they will help you during tasks like this.
 
Share this answer
 
Comments
saravanan6 15-Feb-12 5:54am    
see i dont want to use any ide.give me your solution for without using IDE..
TorstenH. 15-Feb-12 6:11am    
my solution: USE AN IDE! There is no excuse for not doing so. You do not develop software when you're fooling around on some notepad. That is not cool, that is not "hacker style", that is just nothing at all.
krumia 15-Feb-12 10:27am    
Have to somewhat disagree... A starter may fail to grasp the basics (for example, when using a JRE, how JVM works) when using an IDE. You get a learn things as a starter when you fool around on some notepad.

But when it comes to actual projects, I agree 100% with you.
The jar file itself must be in the classpath, and not just the directory containing it
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900