+ 5

JAR files and file IO

I have been working on a JavaFX project for my school project. Apparently FileIO is not working with the JAR file where it works in normal code. Apparently one online source says JAR file contents are immutable. What do I do as an alternative? I tried using MySQL and JDBC but all the complicated stuff made me abandon. Does anyone have any idea on how I can use File IO and write text files without the hassle of immutable JAR file contents?

24th Sep 2018, 3:21 PM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
2 Answers
0
store files outside? make template files and store them in your resources, then copy them outside
24th Sep 2018, 6:02 PM
iJustErik gah
iJustErik gah - avatar
0
I don‘t really understand your problem. Do you want to store the text files in your jar-File? Why do you want to do that? What do you want to do with your application? BR
24th Sep 2018, 9:16 PM
jxw
jxw - avatar