D
deepak
Hi, I have created a java file for sending a file to my mail. I am
using mail.jar file. I am able to create .class file properly. But am
unable to run this file using java command on command prompt.
javac -cp D:\mail.jar SendMailTLSDFC.java
above command is working properly.
It creates 2 class as mentioned below
SendMailTLSDFC$1.class
SendMailTLSDFC.class
but when i am trying to run following command I am getting an error.
java -cp D:\mail.jar SendMailTLSDFC
Exception in thread "main" java.lang.NoClassDefFoundError:
SendMailTLSDFC
Kindly help
using mail.jar file. I am able to create .class file properly. But am
unable to run this file using java command on command prompt.
javac -cp D:\mail.jar SendMailTLSDFC.java
above command is working properly.
It creates 2 class as mentioned below
SendMailTLSDFC$1.class
SendMailTLSDFC.class
but when i am trying to run following command I am getting an error.
java -cp D:\mail.jar SendMailTLSDFC
Exception in thread "main" java.lang.NoClassDefFoundError:
SendMailTLSDFC
Kindly help