Permanent data storage on CREF simulator

hello everyone,

I am currently testing out some applets on the cref simulator,

this is my proceess:

converted my class files to CAP and generated the .SCR file

i ran cref -o and apdutool the .SCR file and saved an image.

My question is, when i loaded the image using cref -i, and ran a client application to modify some variable values on the loaded applet, will the value be stored permanently?

I tried it and it seems that after modifying the value and restaring the CREF simulator, the modified value returns to 0 (original state).

Is there a way to store permanent data using the CREF simulator?

Many thanks.

[667 byte] By [30centsa] at [2007-11-27 11:55:38]
# 1

You can't store data with cref simulator with just open an image for read. But there is one way to make cref behave like a real smart card.

Lets suppose that we have an EEPROM image with the name demo.

You are able to do the follow, read and save at the same time:

cref -i demo -o demo2, if you want to save the new data in another file from the source

cref -i demo -o demo, if you want to save the new data in the same file

I am always using cref instead jcwde. It behaves like a real card.

vcalmalioa at 2007-7-29 19:03:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...