Results 1 to 2 of 2
  1. #1
    luis.depedro is offline Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0

    Default How to insert resources into jar file

    ¿How can I compile a project and package used resources: files, images, etc. into a jar file?
    Eclipse can add files to jar, but then they are not accesible for the executable program.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,252
    Blog Entries
    1
    Rep Power
    24

    Default Re: How to insert resources into jar file

    You need to use them in the program as resources, not as files. The tutorials will explain how to do this.

Similar Threads

  1. Help! - How to insert a new line to a text file
    By matpj in forum New To Java
    Replies: 13
    Last Post: 02-24-2010, 05:28 PM
  2. adding resources to jar file
    By Mekonom in forum New To Java
    Replies: 3
    Last Post: 02-21-2010, 11:34 PM
  3. Input file parsing to insert into DB
    By IDForums in forum New To Java
    Replies: 4
    Last Post: 09-30-2009, 01:13 PM
  4. Access to resources inside jar file
    By aleks.farrier in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 04-15-2009, 01:29 PM

Posting Permissions

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