Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: How to include .ini file into .jar file

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default How to include .ini file into .jar file

    I am using ini file in my project. while converting the java file to .jar file , my ini file is missing.
    Can anyone help me to include ini file in my jar file.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to include .ini file into .jar file

    Read the API doc for the jar command. It will show you how to include any file in the jar file when you are creating it.

    If you are using an IDE, read the doc for the IDE on how to create a jar file.

  3. The Following User Says Thank You to Norm For This Useful Post:

    deemu (March 6th, 2012)

  4. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: How to include .ini file into .jar file

    Is it possible to convert .jar file to .java ?

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to include .ini file into .jar file

    A jar file is a special type of zip file.
    It contains other files like .class and images etc.
    You can extract its contents just like you can with a zip file.
    You can use a zip utility to view a jar file's contents.

  6. The Following User Says Thank You to Norm For This Useful Post:

    deemu (March 6th, 2012)

  7. #5
    Junior Member
    Join Date
    Mar 2012
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: How to include .ini file into .jar file

    Ya i tried this , but ist not converting to java coding...

  8. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to include .ini file into .jar file

    What do you mean by "converting to java coding"?
    What files are in the jar file?

Similar Threads

  1. solaris machine /tmp folder, File.exists() cant see the existing file.
    By aragorn1905 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: December 27th, 2011, 09:41 AM
  2. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM
  3. insert(embed) a file object (.txt file) in MS excel sheet using java.
    By jyoti.dce in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 12th, 2010, 08:16 AM
  4. How to include .ser file into .jar file
    By yuki in forum Java Theory & Questions
    Replies: 17
    Last Post: April 19th, 2010, 10:43 PM
  5. Replies: 8
    Last Post: January 6th, 2010, 09:59 AM