简体   繁体   中英

Issue while running executable Jar

I'm having a lot of issue's while running a executable jar I created.

First of all I got a lot of problems when I created the jar by the usual methode in eclipse (indigo). So I switched to the Fatjar plugin. This solved most problems.

But not all, I still have some issue's. For example :

在此处输入图片说明

The structure of my project is like this.

在此处输入图片说明

By the creation of the jar I all ready included the dir with the property files but he still doesn't find it?!

While running in eclipse I have no problems.

Any suggestions. Thx all.

The file in jar is no more a File (to the filesystem), It is resource of jar, See how to load properties file from jar

Also See

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