3

i copy mail.jar and activation.jar in bin folder of jdk 1.7 but still error javax.mail does not exist

here is my code

import javax.mail.*;
import javax.mail.internet.*;
import javax.actiovation.*;
Kushagra Sharma
  • 101
  • 1
  • 11

1 Answers1

2

You have to add jar to classpath (How do I add jar files to the Classpath?).
Hope that helps.

Community
  • 1
  • 1
Bosko Mijin
  • 3,287
  • 3
  • 32
  • 45
  • 1
    The jar you need can be found here: http://www.oracle.com/technetwork/java/javamail/index.html – Noah Dec 03 '13 at 22:28
  • @Kushagra Sharma You can solve problem regarding to this posts (http://stackoverflow.com/questions/12481269/how-do-i-import-jars-into-my-java-program), but I highly suggest to use any IDE (eclipse, NetBeans, IntelliJ ...). Any IDE is better than nothing, because you will expire lot of benefits (code completition, debugging, highlighting error, etc). – Bosko Mijin Dec 03 '13 at 23:43