First of all, I am new to java. I was using mail.jar file with my swing application to send and receive mails. I am using netbeans and I have added mail.jar library to the path. It works fine when I run my code with netbeans. At dist folder it generates the executable jar file. When I double click that file the window opens. But it doesn't work with mail. No mail related features are displayed. I doubt about the mail.jar library that, it may not be visible to executable jar file that was generated by netbeans, however the mail.jar file is in the lib folder which is inside of dist folder. How do I fix it. Please help. Thanks
Joined: May 31, 2011
Check if the mail.jar is added correctly in the classpath of your jar's manifest file.
Joined: Dec 24, 2011
Thanks John. My problem is cleared. I didn't knew about the class path inside of jar file. Thanks again