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 23:12
Eclipse UserFriend
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 Nov 26 23:31:53 GMT 2014

Powered by FUDForum. Page generated in 0.01655 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software