File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes bundling images in a jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "bundling images in a jar" Watch "bundling images in a jar" New topic

bundling images in a jar

Len Padson
Ranch Hand

Joined: Nov 21, 2011
Posts: 40
Is it possible tobundle images and text files in to a jar file using eclipse? if i want to make a program that uses images, but i dont want to have to always make sure the images a re in the same older as the jar?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
They need to be added as a resource.

the text file would be for viewing only
I agree. Here's the link:
subject: bundling images in a jar
It's not a secret anymore!