AllExperts > Java 
Search      
Java
Volunteer
Answers to thousands of questions
 Home · More Java Questions · Answer Library  · Encyclopedia ·
More Java Answers
Question Library

Ask a question about Java
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Ziv Ben-Eliahu
Expertise
I can answer questions relating to: Java language and usage, coding standards, application modeling and design (model driven development), unit/system testing, test driven development, algorithm complexity issues, Ant and XML-technologies.

Experience
I'm in the software industry for over 4 years now. I worked mainly with Java, but also with other languages. I gave practical session for "System Programming", in university.

Organizations
Open-Source community

Publications
WikiAI08

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Organizations
Open-Source community

Publications
WikiAI08

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Publications
WikiAI08

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

 
   

You are here:  Experts > Computing/Technology > Focus on Java > Java > Adding images in JAR File

Java - Adding images in JAR File


Expert: Ziv Ben-Eliahu - 5/17/2009

Question
Hi, Ziv Ben
         I've just completed my project in java. And now i want to make executable JAR file. I'm using Eclipse IDE. In Eclipse i can make JAR file of my project from File > Export.. menu. It works.
          But the problem is that i have some icons and background images which executable JAR file does not contain. The images are located in a folder in Project Folder. But it did not added in JAR file automatically when it builds.
          Pls I've to make the JAR file with all Images.
Help Me.......

Thanks....

Answer
Hi Nirav,
Here is a quick solution. After you created the simple JAR, using Eclipse, you can open that JAR using any zip-utility (WinZip, WinRar, 7z) and add to it the image files. Make sure you place the image files at the proper directory inside the JAR.

Let me know if this works for you. I will check why Eclipse didn't include the image files, as it should. Usually you need to mark them to be exported, in the project settings.

Ziv.

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.