Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save something into JAR

I have a java app, that needs to save and load user settings. I want to save them in a file located in the JAR file, how could I achieve this?

like image 677
user_unknown Avatar asked Aug 18 '26 12:08

user_unknown


1 Answers

That's not possible. Rather consider using java.util.prefs.Preferences which is designed for exactly this purpose. See also this little guide.

like image 184
BalusC Avatar answered Aug 21 '26 01:08

BalusC