How can i acces the images from jar to with in jar

I want to now make a executable jar file which contain all class files and one jar file (which contain all images).
before jar i use
icon=new ImageIcon(getClass().getResource("image.gif"));
now what can i do and it is possible that no change in the path of image icon.

A jar inside a jar wouldn't be a good idea I don't think- you'd end up having to code around some things to get at the internal jar instead of being able to use code like "getResource()" like you posted.
Consider an ANT task that will handle building your jar for you, if this is a logistics issue. The task can unzip the image jar and shove it in with the application jar.

Similar Messages

  • In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone.

    In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone which are downloaded and not saved,but they remain in cache.
    Even in some apps i have data which i want to remove,but cant find a way to remove them and they are in my cache eating up my memory.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • How can I read the image from database into form

    hi everyone
    if I have table like this
    create table test
    (id number(10),
    pic long raw);
    in this table record
    in form If I have block non database
    how can i read the image into non database item
    I try with this code but no good
    select pic into :photo from test where id=5;
    photo its non database item kind image
    how can i invoke image into item
    thanks alooooooot

    Hello,
    You can't select image with select query. You need to create another database block from test table which has item binds with database pic column. Now in where condition in test block's property you have to write id=5. Change test block's properties UPDATE ALLOWED, INSERT ALLOWED, DELETE ALLOWED to NO. Only Query allowed property set to YES.
    Now in your particular trigger write the code
    GO_BLOCK('test');
    Execute_Query;
    please mark if it help you or correct
    Regards,
    Danish

  • How can i get the images from a picture ring into a cell in Excel?

    Hi
    I need to get the chosen image from a picture ring into a cell in a Excel worksheet. If i use an invoke node i only get to write a picture from file. How can i get the picture directly from the picture ring into Excel?
    Kenneth

    No, there is no simple way of doing it directly. You need some clipboard manipulation which means you need to write some codes in excel as well. Importing the image through a file is much easier.
    -Joe

  • HT4946 From the backup folder how can I move the images from there?

    I just backed up my iphone and I went into the back up folder but you cant save the images, how can I do this?

    You would need 3rd party software to extract photos from a backup.  Instead of doing that, just import them from the camera roll using your usb cable: http://support.apple.com/kb/HT4083.

  • How can I remove the image from an OCR/Image PDF?

    I have some scanned PDFs which have perfect rendering via OCR.  Every word is in the proper place. To make the file size smaller and the text clearer, I would like to remove or detach the image overlay.  How can this be done?  The files are over 90% images in size.
    This is with Acrobat Pro 9 on OS X Snow Leopard, but I assume the technique is independent.
    Thanks for your help.

    No.

  • How can i change the image from a comand button

    i thought it works whit the folowing coden
    <h:commandButton id="but1"
    image="image1.gif"
    onmouseover="document.getElementById(\"but1\").image=\"image2.gif\""/>
    but is dont work
    is this the righet way, or i'm complite wrong
    can somebody help

    Use the folowing:onmouseover="this.src='images2.gif'"Good luck with the relative path to the image :-)

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

  • How can I get an image from the screen? Like screen printer in PC to pasting after in word or other program.

    How can I get an image from the screen? Like screen printer in PC to pasting after in word or other program.

    If you do Cmd+Shift+3 you'll get a full screen image saved to your desktop as a jpg file.
    Also, you can use Cmd+Shift+4 and you'll get a cursor which you click+drag to draw a box. When you release the drag the boxed in area will be saved to the Desktop as a jpg file.

  • How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    If you want to back up the Photos only:
    Export them using the File -> Export command.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • How can i change the image in portal logon screen

    hi guys
    pls tel me
    how can i change the image in portal logon screen
    thanks
    regards
    kamal

    Hi
    Download the par file com.sap.portal.runtime.logon.par.bak from
    Go to System Administration -- Support -- Portal Runtime -- Browse Deployment.
    The path should ROOT/WEB-INF/deployment/pcd. Now download that file into local system.
    Create a Par project and make necessary chenages ..i.e
    Open the downloaded par file with WinZip and inside the lib folder three jar files named com.sap.
    portal.runtime.logon_api.jar, com.sap.portal.runtime.logon_core.jar and umelogonbase.jar will be there. Copy those files in the folder u2018libu2019 in par project.
    Now change a branding Image...i.e
    Replace the branding-image. jpg with your company branding image in the same name.
    Once modifications are done,then create a par project and upload the par file into portal.
    Go to the path System Administration -- Support -- Support Desk -- Portal Runtime -- Administration console.
    then browse the file and click on upload.
    Connect to server where the Portal WebAS is running and go to:
    (drive):\usr\sap\<system id>\<system instance>\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin\servlet_jsp\logon\root\layout.
    There you will find the images used on logon screen, you can replace them for your
    company images, please take care with the width of the images, as usual, to make this
    change effective, you must restart the whole WebAS.
    Regards,
    Raju

  • How can I use the photos from iphoto to display in contacts?

    Contacts has a space for a photo.  At one time I knew how to populate this space with photos from iPhoto. Currently my choices are to use an icon or take a pic with the camera.
    How can I add the photos from iPhoto to the choices for populating the "Contacts" image space for individual cards?

    See this Discussion...
    https://discussions.apple.com/message/19082703#19082703

  • How can I save the images to the iPhone anywhere

    Hello  I own Time capsule 3 tb. How can I save the images to the iPhone anywhere in Time capsule
    note i used fileexplorer when Outside the home isee Outside Message " error connection failed with the error operation time out "
    Thanks

    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    If you want to back up the Photos only:
    Export them using the File -> Export command.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • I am downloading from a Canon 650D to Photoshop CS5.1 AND Adobe Bridge CS5.1  do i need to download a  DNG convertor? if so how do i get the images from the camera to the convertor?

    I am downloading from a Canon 650d  TO Photoshop CS5.1  and Adobe Bridge CS5.1  Do i need to download a DNG convertor? if so how do i get the images from the camera to the convertor?

    Please check the list yourself and co,mare the necessary CR version with the one your version of Photoshop utilizes. 
    If the version os higher than yours you can use the free DNG Converter – as to how to use it please read up on that.
    Camera Raw plug-in | Supported cameras

  • How can I manually attach images from my photo booth (imported into iPhoto) to emails? Auto function, in photo booth has my photos lying sideways?

    How can I manually attach images from my photo booth to iCloud emails?
    They are imported as 'events' into my iphoto library.
    Auto function, in photo booth has my photos lying sideways when placed in 'mail' emails?

    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

Maybe you are looking for