I am relatively new to java programming. I want to know how we can add external files to our .jar. for e.g. i want to add a .tx
t file to my .jar
so that when someone runs my program, it can ask user where it wants to store that .txt
and then copy it at that location. Is it possible to do so? So far all i have been able to find is Open external file with an external program.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
JAR files can contain any kind of file. For example JEE uses war files and ear files, these are really just extended jar files and contain various XML files in addition to the java.
You can read files from a JAR by using methods of any class
yes you can do this if you want.. By running this command
http://docs.oracle.com/javase/tutorial/deployment/jar/update.html