The steps Terry would take, after creating a game (ExampleGame
)
that calls the HighScore
getHighScore
and
setHighScore
methods to get and set, respectively, the user's high scores, are:
javac ExampleGame.java -classpath hs.jar -d .
jar cvf terry.jar com/gamedev/games/ExampleGame.class
keytool -genkey -keystore terry.keystore -alias signTJars
jarsigner -keystore terry.keystore terry.jar signTJars
keytool -export -keystore terry.keystore -alias signTJars -file Terry.cer
terry.jar,
Terry.cer
, and
ExampleGame
class needs.
For this, Terry could supply the exact grant entry needed.
hs.jar
,
Chris.cer
, and
HighScore
and HighScorePermission
classes must be granted in a policy file
in order to work. This could be the exact grant entry needed.