Saving high score

Hello.

How do I save high scores inside a jar file? Everywhere I look on the internet it says you can’t write in a jar file. But I have that Pixel Towers game that’s in the featured games section. That is inside a jar, there are no olther folders, that I can see, and it saves my score.

I realise with applets I can use cookies, but I still need to learn how to do that. But how do you save high scores when it’s not an applet?

It’s probably just saving to your user home dir.

http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html

Great thanks. I didn’t even know such a thing existed!