简体   繁体   中英

Eclipse - Exporting Runnable JAR File (alert popup)

I'm totally misunderstanding something about exporting a project to a JAR.

2 things are happening.

First, I get an alert while exporting the Runnable JAR File:

Exported with compile warnings: prj.Resources/classes/Person.java

My Project is called prj.HelloWorld . The main function resides here. It is also referencing another projects resources, which happens to be prj.Resources . (I added that project to the Java Build Path for prj.HelloWorld )

So, the Person.java class is performing just fine, but I still get the compile warning. What does that warning mean?

Second, when I double-click my helloworld.jar file, which I saved to my desktop, I don't see any images in the MenuBar Items. I'm calling icons from within both projects. When I run the compiler from inside Eclipse, everything shows fine.

-As I'm exporting the Runnable JAR File, I'm selecting the " Extract required libraries into generated JAR ", under the Library handling option.

What am I doing wrong, with images?

Window -> Show View -> Problems

This will open up a view which will show any problems in the program. Warnings are not critical, but notices of possibly deprecated functions and other things that should be changed.

The images are in wrong place/folder so that eclipse ignore them during the build process. If you don't have this folder( src/resources ) try to create it and put your images in it

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