Linked Questions
10 questions linked to/from What is the best way to save user settings in java application?
1 vote
1 answer
937 views
Save data permanently in Java (and load it automatically)? [duplicate]
I'd like to save data (just String that could be stored in a small text file) and load it automatically to the app when it is started. I imagine a text file in the program installed directory but I ...
1 vote
1 answer
433 views
How to save a chosen File for the next use of the Program in Java [duplicate]
I am trying to save the last chosen file (by the user using JFilechooser) so that the next time the program runs, the file will be automatically opened. public void actionPerformed(ActionEvent evt) { ...
0 votes
1 answer
59 views
How can I save a String without needing a file outside the .jar? [duplicate]
I'm currently creating a password safe type of application and I'm stuck at the login. Currently, the user can create an account and select the place where the data will be saved (via object ...
195 votes
9 answers
161k views
Groovy Shell warning "Could not open/create prefs root node ..."
I tried to open the Groovy Shell (groovysh) on Windows 8 and got the following output: java.util.prefs.WindowsPreferences <init> WARNING: Could not open/create prefs root node Software\JavaSoft\...
5 votes
2 answers
6k views
Java credential storage framework
Is there a freely available credential storage framework for Java? I have a desktop application that needs to store the users' credentials to external systems. I'm just wondering if someone already ...
4 votes
2 answers
2k views
Does Java have something similar to Cocoa's NSUserDefaults?
Mac OS X and iOS have a nice little class called NSUserDefaults. It's a singleton that lets you store strings, arrays, and primitives, and you can always implement some methods to add custom objects ...
-3 votes
1 answer
1k views
Saving variable state in between sessions?
So I'm in the process of developing a Java IRC bot as a bit of a side project for a friend of mine, and while development is going well, I'm a little unsure as how to save the current state of certain ...
2 votes
1 answer
646 views
getClass().getResource() not working for .txt files?
Background: I'm in the process of writing a game (as an executable jar) and part of my game is a preferences dialog where you can set things like the opponent names and different variables that affect ...
0 votes
0 answers
157 views
JavaFX application with Hibernate read server url from external file
It's possible in the hibernate.cfg.xml file read data from a .txt configuration file? My intent is that in my JAVAFX application I can leave the server ip address of to be populated by my client. If ...
0 votes
1 answer
56 views
How can I make my .jar resource files point to the right directory
So I have cleaned and build it my project as a runnable jar file. There are some scenes that need to get data from files in the project. But for some reason, the file path's are not correct. My ...