It might be obvious since no one else has asked this but anyway:

What version of Java Card is the internal Java Card of Nokia 6212?

Something like 2.1.1 or 2.2.1?

I'm having troubles with installing an applet on the SE. From what I have understood, the version of the .cap file must be the same as the version of the Java Card.

The SE is unlocked. The GPShell script I'm using is this:

*********************** helloInstall.txt ***********************************
card_connect -readerNumber 2
select -AID a0000000030000
open_sc -security 3 -keyind 0 -keyver 42 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494A4B4C4D4E4F
delete -AID a00000006203010c0101
delete -AID a00000006203010c01
delete -AID a00000006203010c0101
install -file HelloWorld.cap -nvDataLimit 500 -instParam 00 -priv 2

It's at the line:

install -file HelloWorld.cap -nvDataLimit 500 -instParam 00 -priv 2

that the error occurs.

The last lines of the result are:

install -file HelloWorld.cap -nvDataLimit 500 -instParam 00 -priv 2
file name HelloWorld.cap
Command --> 80E602001F09A00000006203010C0107A0000000030000000AEF08C60201A8C80201
Wrapped command --> 84E60200285B7DE49A286D3DB6965511DE745AD1DA96F7022BFFE70A778B
Response <-- 6A88
install_for_load() returns 0x80206A88 (6A88: Referenced data not found.)

Any ideas?