Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have java file , .log file and .ini file.

i want to create these 3 files into .jar file.

i have created the .jar file ,but there is no .ini file inside that jar ?

why .ini file is not created inside the .jar file?
Posted
Comments
ZurdoDev 13-Mar-12 12:24pm    
What does your code look like?
Richard MacCutchan 13-Mar-12 12:28pm    
Did you include it when you created your archive?
Sergey Alexandrovich Kryukov 13-Mar-12 19:46pm    
Why do you think it should be created? .INI is the obsolete Windows storage for initialization parameters, have nothing to do with Java.
--SA

1 solution

Why do you think a .INI file should be created for you? .INI is the obsolete Windows storage for initialization parameters, have little or nothing to do with Java.

If, by some weird reason, you created a .INI file and want to store it in a JAR file, you can remember that a JAR file is basically a ZIP file. All zip file archive programs can extract files from a JAR file and pack them. If you want to go this way, see the package java.util.zip:
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/zip/package-summary.html[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900