Forums Register Login

Problem using external jar file

+Pie Number of slices to send: Send
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
1
+Pie Number of slices to send: Send
Check if the mail.jar is added correctly in the classpath of your jar's manifest file.
+Pie Number of slices to send: Send
Thanks John. My problem is cleared. I didn't knew about the class path inside of jar file. Thanks again
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1031 times.
Similar Threads
Creating .exe from class file
about splash screen with jar file...
Netbeans Experts...
packaging
Problem while executing jar file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:55:07.