• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bundling images in a jar

 
Len Padson
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They need to be added as a resource.
getResource(...)

the text file would be for viewing only
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic