Results 1 to 4 of 4

Thread: jar file

  1. #1
    vimalaranjan is offline Member
    Join Date
    May 2011
    Posts
    8
    Rep Power
    0

    Default jar file

    how can i create jar file with image

    i'm using a image file on my GUI

    i have
    Example.java
    Example.class
    bg.jpg

    how can i create jar File
    plz help me

    i tried but it's creating without my image

  2. #2
    RichersooN is offline Senior Member
    Join Date
    Jan 2011
    Location
    Rizal Province, Philippiines
    Posts
    167
    Rep Power
    0

    Default

    It depends on what IDE you're using

  3. #3
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    4

    Default

    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,526
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by vimalaranjan View Post
    how can i create jar file with image

    i'm using a image file on my GUI

    i have
    Example.java
    Example.class
    bg.jpg

    how can i create jar File
    plz help me

    i tried but it's creating without my image
    Java Code:
    jar -cvf YourJar.jar Example.class bg.jpg
    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 1
    Last Post: 08-04-2010, 03:24 PM
  2. Replies: 0
    Last Post: 07-15-2010, 01:23 PM
  3. Replies: 8
    Last Post: 02-18-2010, 12:54 PM
  4. Replies: 0
    Last Post: 02-11-2009, 09:53 AM
  5. Replies: 7
    Last Post: 05-23-2008, 03:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •