Program runs in IDE but not as .jar file2019 Community Moderator ElectionJava Mail : No provider for smtpIntellij Java 2016 & Maven : how to embed dependencies in JAR?How to get the path of a running JAR file?Running JAR file on WindowsHow can I create an executable JAR with dependencies using Maven?“Invalid signature file” when attempting to run a .jarHow to run multiple .BAT files within a .BAT fileJavaMail with Gmail: 535-5.7.1 Username and Password not acceptedHow to add local jar files to a Maven project?Run jar file in command promptCan't execute jar- file: “no main manifest attribute”JavaMail - multiple senders

What's the meaning of a knight fighting a snail in medieval book illustrations?

Recruiter wants very extensive technical details about all of my previous work

What are substitutions for coconut in curry?

Could the Saturn V actually have launched astronauts around Venus?

Why do tuner card drivers fail to build after kernel update to 4.4.0-143-generic?

Do I need to be arrogant to get ahead?

How to explain that I do not want to visit a country due to personal safety concern?

How to terminate ping <dest> &

Employee lack of ownership

How could an airship be repaired midflight?

Did Ender ever learn that he killed Stilson and/or Bonzo?

Book about superhumans hiding among normal humans

If I can solve Sudoku, can I solve the Travelling Salesman Problem (TSP)? If so, how?

Why does overlay work only on the first tcolorbox?

Is it good practice to use Linear Least-Squares with SMA?

I am confused as to how the inverse of a certain function is found.

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

Counting models satisfying a boolean formula

Professor being mistaken for a grad student

Is there a symmetric-key algorithm which we can use for creating a signature?

Are ETF trackers fundamentally better than individual stocks?

Instead of a Universal Basic Income program, why not implement a "Universal Basic Needs" program?

Is there a place to find the pricing for things not mentioned in the PHB? (non-magical)

"of which" is correct here?



Program runs in IDE but not as .jar file



2019 Community Moderator ElectionJava Mail : No provider for smtpIntellij Java 2016 & Maven : how to embed dependencies in JAR?How to get the path of a running JAR file?Running JAR file on WindowsHow can I create an executable JAR with dependencies using Maven?“Invalid signature file” when attempting to run a .jarHow to run multiple .BAT files within a .BAT fileJavaMail with Gmail: 535-5.7.1 Username and Password not acceptedHow to add local jar files to a Maven project?Run jar file in command promptCan't execute jar- file: “no main manifest attribute”JavaMail - multiple senders










0















I am creating a larger program that will have emails sent to the users account whenever an event happens, and right now I am just focusing on making the email sending work.



Right now, I have it functioning perfectly in the IDE (IntelliJ) with no errors or warnings, but after I jar the file and run it in the terminal I get an error every time the program tries to send an email.



I am assuming I jarred the file wrong since it works in the IDE perfectly fine, but I am not too sure. I have looked up similar issues to mine but have not found a working solution.



This is the file that has issues in the terminal



package handler;

import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMessage.RecipientType;
import java.util.Properties;

public class Sender

private Sender()

private static final String SENDERS_GMAIL = "myemail@email.com";
private static final String SENDERS_PASSWORD = "mypassword";

private static final String RECEIEVES_EMAIL = "myemail@email.com";

private static Properties mailServerProperties;
private static Session mailSession;
private static MimeMessage mailMessage;

public static void sendMail(String emailBody) throws Throwable

mailServerProperties = System.getProperties();
mailServerProperties.put("mail.smtp.port", "587");
mailServerProperties.put("mail.smtp.auth", "true");
mailServerProperties.put("mail.smtp.starttls.enable", "true");

mailSession = Session.getDefaultInstance(mailServerProperties);

mailMessage = new MimeMessage(mailSession);
mailMessage.addRecipient(RecipientType.BCC, new InternetAddress(RECEIEVES_EMAIL));
mailMessage.setSubject("Test Email");
mailMessage.setContent(emailBody, "text/html");

Transport transport = mailSession.getTransport("smtp");
transport.connect("smtp.gmail.com", SENDERS_GMAIL, SENDERS_PASSWORD);
transport.sendMessage(mailMessage, mailMessage.getAllRecipients());
transport.close();




And whenever I run the .jar in the terminal, this is the error I get:



 C:UsersgenlapEmailSender>java -jar SendEmail.jar
javax.mail.NoSuchProviderException: No provider for smtp
at javax.mail.Session.getProvider(Session.java:460)
at javax.mail.Session.getTransport(Session.java:655)
at javax.mail.Session.getTransport(Session.java:636)
at handler.Sender.sendMail(Sender.java:37)
at handler.ManageService.run(ManageService.java:32)
at java.lang.Thread.run(Unknown Source)
Message failed to be sent.


The line in the Sender file that is being called out in the error is



Transport transport = mailSession.getTransport("smtp");


Does anybody know how I can solve this?










share|improve this question
























  • See if the answers to this question help.

    – PM 77-1
    Mar 7 at 15:36











  • @PM77-1 unfortunately no that did not help. I believe I already have all the required dependencies properly added to the .jar. But I could always be wrong

    – brent_mb
    Mar 7 at 16:03















0















I am creating a larger program that will have emails sent to the users account whenever an event happens, and right now I am just focusing on making the email sending work.



Right now, I have it functioning perfectly in the IDE (IntelliJ) with no errors or warnings, but after I jar the file and run it in the terminal I get an error every time the program tries to send an email.



I am assuming I jarred the file wrong since it works in the IDE perfectly fine, but I am not too sure. I have looked up similar issues to mine but have not found a working solution.



This is the file that has issues in the terminal



package handler;

import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMessage.RecipientType;
import java.util.Properties;

public class Sender

private Sender()

private static final String SENDERS_GMAIL = "myemail@email.com";
private static final String SENDERS_PASSWORD = "mypassword";

private static final String RECEIEVES_EMAIL = "myemail@email.com";

private static Properties mailServerProperties;
private static Session mailSession;
private static MimeMessage mailMessage;

public static void sendMail(String emailBody) throws Throwable

mailServerProperties = System.getProperties();
mailServerProperties.put("mail.smtp.port", "587");
mailServerProperties.put("mail.smtp.auth", "true");
mailServerProperties.put("mail.smtp.starttls.enable", "true");

mailSession = Session.getDefaultInstance(mailServerProperties);

mailMessage = new MimeMessage(mailSession);
mailMessage.addRecipient(RecipientType.BCC, new InternetAddress(RECEIEVES_EMAIL));
mailMessage.setSubject("Test Email");
mailMessage.setContent(emailBody, "text/html");

Transport transport = mailSession.getTransport("smtp");
transport.connect("smtp.gmail.com", SENDERS_GMAIL, SENDERS_PASSWORD);
transport.sendMessage(mailMessage, mailMessage.getAllRecipients());
transport.close();




And whenever I run the .jar in the terminal, this is the error I get:



 C:UsersgenlapEmailSender>java -jar SendEmail.jar
javax.mail.NoSuchProviderException: No provider for smtp
at javax.mail.Session.getProvider(Session.java:460)
at javax.mail.Session.getTransport(Session.java:655)
at javax.mail.Session.getTransport(Session.java:636)
at handler.Sender.sendMail(Sender.java:37)
at handler.ManageService.run(ManageService.java:32)
at java.lang.Thread.run(Unknown Source)
Message failed to be sent.


The line in the Sender file that is being called out in the error is



Transport transport = mailSession.getTransport("smtp");


Does anybody know how I can solve this?










share|improve this question
























  • See if the answers to this question help.

    – PM 77-1
    Mar 7 at 15:36











  • @PM77-1 unfortunately no that did not help. I believe I already have all the required dependencies properly added to the .jar. But I could always be wrong

    – brent_mb
    Mar 7 at 16:03













0












0








0








I am creating a larger program that will have emails sent to the users account whenever an event happens, and right now I am just focusing on making the email sending work.



Right now, I have it functioning perfectly in the IDE (IntelliJ) with no errors or warnings, but after I jar the file and run it in the terminal I get an error every time the program tries to send an email.



I am assuming I jarred the file wrong since it works in the IDE perfectly fine, but I am not too sure. I have looked up similar issues to mine but have not found a working solution.



This is the file that has issues in the terminal



package handler;

import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMessage.RecipientType;
import java.util.Properties;

public class Sender

private Sender()

private static final String SENDERS_GMAIL = "myemail@email.com";
private static final String SENDERS_PASSWORD = "mypassword";

private static final String RECEIEVES_EMAIL = "myemail@email.com";

private static Properties mailServerProperties;
private static Session mailSession;
private static MimeMessage mailMessage;

public static void sendMail(String emailBody) throws Throwable

mailServerProperties = System.getProperties();
mailServerProperties.put("mail.smtp.port", "587");
mailServerProperties.put("mail.smtp.auth", "true");
mailServerProperties.put("mail.smtp.starttls.enable", "true");

mailSession = Session.getDefaultInstance(mailServerProperties);

mailMessage = new MimeMessage(mailSession);
mailMessage.addRecipient(RecipientType.BCC, new InternetAddress(RECEIEVES_EMAIL));
mailMessage.setSubject("Test Email");
mailMessage.setContent(emailBody, "text/html");

Transport transport = mailSession.getTransport("smtp");
transport.connect("smtp.gmail.com", SENDERS_GMAIL, SENDERS_PASSWORD);
transport.sendMessage(mailMessage, mailMessage.getAllRecipients());
transport.close();




And whenever I run the .jar in the terminal, this is the error I get:



 C:UsersgenlapEmailSender>java -jar SendEmail.jar
javax.mail.NoSuchProviderException: No provider for smtp
at javax.mail.Session.getProvider(Session.java:460)
at javax.mail.Session.getTransport(Session.java:655)
at javax.mail.Session.getTransport(Session.java:636)
at handler.Sender.sendMail(Sender.java:37)
at handler.ManageService.run(ManageService.java:32)
at java.lang.Thread.run(Unknown Source)
Message failed to be sent.


The line in the Sender file that is being called out in the error is



Transport transport = mailSession.getTransport("smtp");


Does anybody know how I can solve this?










share|improve this question
















I am creating a larger program that will have emails sent to the users account whenever an event happens, and right now I am just focusing on making the email sending work.



Right now, I have it functioning perfectly in the IDE (IntelliJ) with no errors or warnings, but after I jar the file and run it in the terminal I get an error every time the program tries to send an email.



I am assuming I jarred the file wrong since it works in the IDE perfectly fine, but I am not too sure. I have looked up similar issues to mine but have not found a working solution.



This is the file that has issues in the terminal



package handler;

import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMessage.RecipientType;
import java.util.Properties;

public class Sender

private Sender()

private static final String SENDERS_GMAIL = "myemail@email.com";
private static final String SENDERS_PASSWORD = "mypassword";

private static final String RECEIEVES_EMAIL = "myemail@email.com";

private static Properties mailServerProperties;
private static Session mailSession;
private static MimeMessage mailMessage;

public static void sendMail(String emailBody) throws Throwable

mailServerProperties = System.getProperties();
mailServerProperties.put("mail.smtp.port", "587");
mailServerProperties.put("mail.smtp.auth", "true");
mailServerProperties.put("mail.smtp.starttls.enable", "true");

mailSession = Session.getDefaultInstance(mailServerProperties);

mailMessage = new MimeMessage(mailSession);
mailMessage.addRecipient(RecipientType.BCC, new InternetAddress(RECEIEVES_EMAIL));
mailMessage.setSubject("Test Email");
mailMessage.setContent(emailBody, "text/html");

Transport transport = mailSession.getTransport("smtp");
transport.connect("smtp.gmail.com", SENDERS_GMAIL, SENDERS_PASSWORD);
transport.sendMessage(mailMessage, mailMessage.getAllRecipients());
transport.close();




And whenever I run the .jar in the terminal, this is the error I get:



 C:UsersgenlapEmailSender>java -jar SendEmail.jar
javax.mail.NoSuchProviderException: No provider for smtp
at javax.mail.Session.getProvider(Session.java:460)
at javax.mail.Session.getTransport(Session.java:655)
at javax.mail.Session.getTransport(Session.java:636)
at handler.Sender.sendMail(Sender.java:37)
at handler.ManageService.run(ManageService.java:32)
at java.lang.Thread.run(Unknown Source)
Message failed to be sent.


The line in the Sender file that is being called out in the error is



Transport transport = mailSession.getTransport("smtp");


Does anybody know how I can solve this?







java cmd jar javamail executable-jar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 16:04









Karol Dowbecki

24k93657




24k93657










asked Mar 7 at 15:30









brent_mbbrent_mb

927




927












  • See if the answers to this question help.

    – PM 77-1
    Mar 7 at 15:36











  • @PM77-1 unfortunately no that did not help. I believe I already have all the required dependencies properly added to the .jar. But I could always be wrong

    – brent_mb
    Mar 7 at 16:03

















  • See if the answers to this question help.

    – PM 77-1
    Mar 7 at 15:36











  • @PM77-1 unfortunately no that did not help. I believe I already have all the required dependencies properly added to the .jar. But I could always be wrong

    – brent_mb
    Mar 7 at 16:03
















See if the answers to this question help.

– PM 77-1
Mar 7 at 15:36





See if the answers to this question help.

– PM 77-1
Mar 7 at 15:36













@PM77-1 unfortunately no that did not help. I believe I already have all the required dependencies properly added to the .jar. But I could always be wrong

– brent_mb
Mar 7 at 16:03





@PM77-1 unfortunately no that did not help. I believe I already have all the required dependencies properly added to the .jar. But I could always be wrong

– brent_mb
Mar 7 at 16:03












2 Answers
2






active

oldest

votes


















1














You are either not including the dependencies in the SendEmail.jar or it lacks MANIFEST.MF entries which point to them. Due to that dependencies which IntelliJ is using for building and running the application are not available when you are executing java -jar from the command line.



The easiest way would be to create a fat JAR with all dependencies. If you use Maven you can take a look at this answer or use Maven Shade Plugin.






share|improve this answer























  • Thanks for the response. I created a "fat" JAR as you described, but the issue still persists. I am guessing the issue is with the MANIFEST.MF now, but since this is an automatically generated file I am not sure how I could fix it. Do you have any suggestions?

    – brent_mb
    Mar 7 at 15:57












  • What build tools are you using to create the JAR? Maven? Or are you using IntelliJ?

    – Karol Dowbecki
    Mar 7 at 16:03











  • I am using IntelliJ

    – brent_mb
    Mar 7 at 16:08


















0














If you're creating your application by taking the class files out of the JavaMail jar file and putting them in your application jar file, then you're missing all the META-INF files from the JavaMail jar file. The best approach is to find a solution that does not require repackaging the JavaMail jar file, such as One-JAR.






share|improve this answer























  • I am using the JavaMail jar files as a whole, I am not taking the individual class files out and adding them to the application. I have a lot of .jar dependencies that I am just telling the IDE to pack in to the outputted application file I am creating

    – brent_mb
    Mar 7 at 22:41












  • How is the IDE adding these jar files to the application file? What do you see if you look inside the application jar file that is created?

    – Bill Shannon
    Mar 8 at 22:35










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55047416%2fprogram-runs-in-ide-but-not-as-jar-file%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You are either not including the dependencies in the SendEmail.jar or it lacks MANIFEST.MF entries which point to them. Due to that dependencies which IntelliJ is using for building and running the application are not available when you are executing java -jar from the command line.



The easiest way would be to create a fat JAR with all dependencies. If you use Maven you can take a look at this answer or use Maven Shade Plugin.






share|improve this answer























  • Thanks for the response. I created a "fat" JAR as you described, but the issue still persists. I am guessing the issue is with the MANIFEST.MF now, but since this is an automatically generated file I am not sure how I could fix it. Do you have any suggestions?

    – brent_mb
    Mar 7 at 15:57












  • What build tools are you using to create the JAR? Maven? Or are you using IntelliJ?

    – Karol Dowbecki
    Mar 7 at 16:03











  • I am using IntelliJ

    – brent_mb
    Mar 7 at 16:08















1














You are either not including the dependencies in the SendEmail.jar or it lacks MANIFEST.MF entries which point to them. Due to that dependencies which IntelliJ is using for building and running the application are not available when you are executing java -jar from the command line.



The easiest way would be to create a fat JAR with all dependencies. If you use Maven you can take a look at this answer or use Maven Shade Plugin.






share|improve this answer























  • Thanks for the response. I created a "fat" JAR as you described, but the issue still persists. I am guessing the issue is with the MANIFEST.MF now, but since this is an automatically generated file I am not sure how I could fix it. Do you have any suggestions?

    – brent_mb
    Mar 7 at 15:57












  • What build tools are you using to create the JAR? Maven? Or are you using IntelliJ?

    – Karol Dowbecki
    Mar 7 at 16:03











  • I am using IntelliJ

    – brent_mb
    Mar 7 at 16:08













1












1








1







You are either not including the dependencies in the SendEmail.jar or it lacks MANIFEST.MF entries which point to them. Due to that dependencies which IntelliJ is using for building and running the application are not available when you are executing java -jar from the command line.



The easiest way would be to create a fat JAR with all dependencies. If you use Maven you can take a look at this answer or use Maven Shade Plugin.






share|improve this answer













You are either not including the dependencies in the SendEmail.jar or it lacks MANIFEST.MF entries which point to them. Due to that dependencies which IntelliJ is using for building and running the application are not available when you are executing java -jar from the command line.



The easiest way would be to create a fat JAR with all dependencies. If you use Maven you can take a look at this answer or use Maven Shade Plugin.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 7 at 15:38









Karol DowbeckiKarol Dowbecki

24k93657




24k93657












  • Thanks for the response. I created a "fat" JAR as you described, but the issue still persists. I am guessing the issue is with the MANIFEST.MF now, but since this is an automatically generated file I am not sure how I could fix it. Do you have any suggestions?

    – brent_mb
    Mar 7 at 15:57












  • What build tools are you using to create the JAR? Maven? Or are you using IntelliJ?

    – Karol Dowbecki
    Mar 7 at 16:03











  • I am using IntelliJ

    – brent_mb
    Mar 7 at 16:08

















  • Thanks for the response. I created a "fat" JAR as you described, but the issue still persists. I am guessing the issue is with the MANIFEST.MF now, but since this is an automatically generated file I am not sure how I could fix it. Do you have any suggestions?

    – brent_mb
    Mar 7 at 15:57












  • What build tools are you using to create the JAR? Maven? Or are you using IntelliJ?

    – Karol Dowbecki
    Mar 7 at 16:03











  • I am using IntelliJ

    – brent_mb
    Mar 7 at 16:08
















Thanks for the response. I created a "fat" JAR as you described, but the issue still persists. I am guessing the issue is with the MANIFEST.MF now, but since this is an automatically generated file I am not sure how I could fix it. Do you have any suggestions?

– brent_mb
Mar 7 at 15:57






Thanks for the response. I created a "fat" JAR as you described, but the issue still persists. I am guessing the issue is with the MANIFEST.MF now, but since this is an automatically generated file I am not sure how I could fix it. Do you have any suggestions?

– brent_mb
Mar 7 at 15:57














What build tools are you using to create the JAR? Maven? Or are you using IntelliJ?

– Karol Dowbecki
Mar 7 at 16:03





What build tools are you using to create the JAR? Maven? Or are you using IntelliJ?

– Karol Dowbecki
Mar 7 at 16:03













I am using IntelliJ

– brent_mb
Mar 7 at 16:08





I am using IntelliJ

– brent_mb
Mar 7 at 16:08













0














If you're creating your application by taking the class files out of the JavaMail jar file and putting them in your application jar file, then you're missing all the META-INF files from the JavaMail jar file. The best approach is to find a solution that does not require repackaging the JavaMail jar file, such as One-JAR.






share|improve this answer























  • I am using the JavaMail jar files as a whole, I am not taking the individual class files out and adding them to the application. I have a lot of .jar dependencies that I am just telling the IDE to pack in to the outputted application file I am creating

    – brent_mb
    Mar 7 at 22:41












  • How is the IDE adding these jar files to the application file? What do you see if you look inside the application jar file that is created?

    – Bill Shannon
    Mar 8 at 22:35















0














If you're creating your application by taking the class files out of the JavaMail jar file and putting them in your application jar file, then you're missing all the META-INF files from the JavaMail jar file. The best approach is to find a solution that does not require repackaging the JavaMail jar file, such as One-JAR.






share|improve this answer























  • I am using the JavaMail jar files as a whole, I am not taking the individual class files out and adding them to the application. I have a lot of .jar dependencies that I am just telling the IDE to pack in to the outputted application file I am creating

    – brent_mb
    Mar 7 at 22:41












  • How is the IDE adding these jar files to the application file? What do you see if you look inside the application jar file that is created?

    – Bill Shannon
    Mar 8 at 22:35













0












0








0







If you're creating your application by taking the class files out of the JavaMail jar file and putting them in your application jar file, then you're missing all the META-INF files from the JavaMail jar file. The best approach is to find a solution that does not require repackaging the JavaMail jar file, such as One-JAR.






share|improve this answer













If you're creating your application by taking the class files out of the JavaMail jar file and putting them in your application jar file, then you're missing all the META-INF files from the JavaMail jar file. The best approach is to find a solution that does not require repackaging the JavaMail jar file, such as One-JAR.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 7 at 22:14









Bill ShannonBill Shannon

23.9k53134




23.9k53134












  • I am using the JavaMail jar files as a whole, I am not taking the individual class files out and adding them to the application. I have a lot of .jar dependencies that I am just telling the IDE to pack in to the outputted application file I am creating

    – brent_mb
    Mar 7 at 22:41












  • How is the IDE adding these jar files to the application file? What do you see if you look inside the application jar file that is created?

    – Bill Shannon
    Mar 8 at 22:35

















  • I am using the JavaMail jar files as a whole, I am not taking the individual class files out and adding them to the application. I have a lot of .jar dependencies that I am just telling the IDE to pack in to the outputted application file I am creating

    – brent_mb
    Mar 7 at 22:41












  • How is the IDE adding these jar files to the application file? What do you see if you look inside the application jar file that is created?

    – Bill Shannon
    Mar 8 at 22:35
















I am using the JavaMail jar files as a whole, I am not taking the individual class files out and adding them to the application. I have a lot of .jar dependencies that I am just telling the IDE to pack in to the outputted application file I am creating

– brent_mb
Mar 7 at 22:41






I am using the JavaMail jar files as a whole, I am not taking the individual class files out and adding them to the application. I have a lot of .jar dependencies that I am just telling the IDE to pack in to the outputted application file I am creating

– brent_mb
Mar 7 at 22:41














How is the IDE adding these jar files to the application file? What do you see if you look inside the application jar file that is created?

– Bill Shannon
Mar 8 at 22:35





How is the IDE adding these jar files to the application file? What do you see if you look inside the application jar file that is created?

– Bill Shannon
Mar 8 at 22:35

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55047416%2fprogram-runs-in-ide-but-not-as-jar-file%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme