This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Problem using external jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem using external jar file" Watch "Problem using external jar file" New topic
Author

Problem using external jar file

vinayjg kumar
Greenhorn

Joined: Dec 24, 2011
Posts: 5
Hi all,

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



vinay
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Check if the mail.jar is added correctly in the classpath of your jar's manifest file.
vinayjg kumar
Greenhorn

Joined: Dec 24, 2011
Posts: 5
Thanks John. My problem is cleared. I didn't knew about the class path inside of jar file. Thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem using external jar file
 
Similar Threads
about splash screen with jar file...
Netbeans Experts...
packaging
Problem while executing jar file
Creating .exe from class file