This site requires JavaScript, please enable it in your browser!
Greenfoot back
PaulusMolestus
PaulusMolestus wrote ...

2016/11/9

jar File does not working

1
2
PaulusMolestus PaulusMolestus

2016/11/12

#
Ok thanks, now it works! But how exactly do i create a Counter/highscore which will work in a jar file?
PaulusMolestus PaulusMolestus

2016/11/12

#
danpost wrote...
Remove the HighScore class and everything dealing with it. UserInfo is not accessible from a jar file and java security prevents access to it on the greenfoot site. You can keep a session high score that will work everywhere by using a static field. Permanent high score could be read and written to a file within your project; but, this also will not work on the greenfoot site.
Ok Thanks, it Works! but how exactly do i make a saved highscore in a jar file?
danpost danpost

2016/11/13

#
Super_Hippo wrote...
I personally did not try it on one of my scenarios,
@Super_Hippo, could you do me a favor ... open up my Private Messaging scenario (while logged in) and post here the message I just left you (to test it out). Maybe the latest java update corrected something that was causing issues preventing data to be stored (and throwing an exception).
Super_Hippo Super_Hippo

2016/11/13

#
Sure. It reads "Sending test message 11/13/16".
danpost danpost

2016/11/13

#
Super_Hippo wrote...
Sure. It reads "Sending test message 11/13/16".
Okay -- very good. Next step I guess is to upload a new scenario with UserInfo and test it. One minute please.
danpost danpost

2016/11/13

#
@Super_Hippo, I was going to upload a copy of that scenario and test with it. I forgot to change the title when uploading, so it just updated the old one (with no changes). However, It appears UserInfo is working okay now. Thanks for the assist.
You need to login to post a reply.
1
2