简体   繁体   中英

Exporting runnable jar with eclipse

I know this has been asked for a nuber of times, but thoose answers didn't help

I have a project, it has two packages (core and images) and three prperties files. Core contains six classes and images a single gif images.

I want to use Eclipse to export my project to a runnable jar in a way that a single jar file is created that can run regardless of it's location.

I tried with export->runnable jar and I tried with fat jar exporter (which worked, but only in folder), but it just won't work.

Can anyone tell me what settings should I use during the eclipse export?

It sounds like your choosing the wrong main method for your jar.

Does your application have multiple launch configurations?

Make sure to choose the right launch configuration when you export it.

Ben Lawry是正确的,我的属性文件无法正确访问,并且由于它们是在GUI出现之前加载的,因此程序在启动时失败,但未显示任何内容...

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