Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Include resources into the JAR
Include resources into the JAR [message #568633] Wed, 26 November 2008 18:12
Eclipse User
Originally posted by: news.s237965939.online.de

In my application there are images to display in forms. I can load them
from disk on the emulator. I've also imported the image in the elipse
project 'res' package/folder. But how will it go into the jar file and
how do I refer to it from the sourcecode? Currently I'm doing

Image image = Image.createImage( "/myPictue.jpg" );
picAlert.setImage(image);

TIA,
Hans
Previous Topic:Vertically split a form
Next Topic:java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
Goto Forum:
  


Current Time: Wed Jul 30 17:30:31 EDT 2014

Powered by FUDForum. Page generated in 0.01624 seconds