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

2015/9/10

UserInfo Class

ilham ilham

2015/9/10

#
Is something i should do before i can use UserInfo.isStorageAvailable() on Greenfoot site? it works fine offline, but when i upload and play it online im sure that first line that execute UserInfo.isStorageAvailable() makes my loop stop, then it will continue if i click run once again, but then UserInfo.isStorageAvailable() statement always execute as false after that first one.
Super_Hippo Super_Hippo

2015/9/10

#
If you see a red screen in this scenario, then you are probably using Java 8. Accessing and reading UserInfo data isn't possible with Java 8, so 'UserInfo.isStorageAvailable()' returns 'false'. The only way (I know) is to use Java 7 instead.
You need to login to post a reply.