简体   繁体   中英

JAVA jar execution problem

When i execute the application in jidea ide it executes fine. But when i double click the jar file it shows the gui fine, then i click a button which must create some objects, but only some objects created, in that action call some constructors does not called. But when this is done in the ide all the constructors called!!!

what is the reason for this behavior? what would i do to solve this different behaviors?

You are probably missing some classes in the jar you've created. Check the classpath in your IDE project and compare with your system classpath. Any differences between those need to be included in your jar (or you jar-classpath).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM