Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage fails to save user preferences and crashes upon starting of application #9

Open
autumn-sonata opened this issue Oct 28, 2022 · 0 comments

Comments

@autumn-sonata
Copy link
Owner

The following message appears when the JAR file is being executed through the command line, using the command java -jar FAP.jar:

image.png

This occurs due to how the application is unable to save to preferences.json, when preferences.json is read only. A similar logic applies to config.json as well.

The read only property of a file on your OS system can be manually configured by:

  1. Right clicking the preferences.json file.
  2. Going to the properties of preferences.json.

You will be greeted by this page:

image.png

The read only attribute of the file can be toggled under General -> Attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant