0

I've writing a java program to send email using normal text editor (eg sublime).So, while compiling it shows javax.mail package doesnot exists and i've download javax mail package and activation but I cannot found where to save those package to run that email program...so please help me wheather to save those downloaded package and the detailed process of saving those package to work properly

Som Adhikari
  • 75
  • 1
  • 1
  • 6
  • Possible duplicate of [Including jars in classpath on commandline (javac or apt)](http://stackoverflow.com/questions/2096283/including-jars-in-classpath-on-commandline-javac-or-apt) – seenukarthi May 19 '16 at 09:01

1 Answers1

0

You can execute your java class by including the downloaded jar into class path.

Let your Java class is HelloWorld. And you need classes from TOOLS.jar in your program. Run your java program from command prompt using this command

java -cp <path>\TOOLS.jar; HelloWorld
Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32