Oh, I've searched quite a lot by now. I've managed to create a keystore that holds three keys of mine, with prefixes di, dn, dk. I've created the manifest file, signed the jar file with my three keys, renamed it as azw2. Unzipping it reveals the META information as well as my classes, which appear in folders com/digory/helloworld. The manifest file sets the Main-Class to com.digory.helloworld.Main. Main.java starts with package com.digory.helloworld. I've put the azw2 file into the documents folder of the kindle. I've merged my keystore into the keystore from the jailbreak and put it back at the right place. My HelloWorld program appears on the main screen.
However, when I try to start the program, those error messages appear. The same happens when I try to install and open any other kindlet I've downloaded from here, if it's written in Java. (The json stuff seems to work.) Of course, I merged their keys into the keystore.
EDIT: To clarify things: The keystore is at /var/local/java/keystore/developer.keystore. The following is an extract from keytool, using -list with that keystore:
Code:
didigory, Jul 2, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 23:3B:4C:23:2C:4A:8E:FD:93:FA:27:88:A1:B6:12:06
dkdigory, Jul 2, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 2E:14:FC:66:DB:1F:EC:5B:22:33:BE:09:EB:37:04:BF
dndigory, Jul 2, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 12:9D:08:A6:A7:AA:8D:29:80:D1:BE:E5:1D:48:30:57
kindletinteractionsupport, Jan 28, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 35:BF:DB:E3:9C:95:71:48:AF:1A:16:AA:DD:8B:75:06
kindletnetworksupport, Jan 28, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 96:7C:DF:AE:2A:ED:72:EF:7E:19:FF:28:52:FC:67:56
kindlet, Jan 28, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 2D:FD:88:43:0F:11:AA:7E:3C:48:11:13:3D:D6:9E:ED
Although it was never mentioned, I also tried signing my jar file with the keys kindlet, kindletnetworksupport and kindletinteractionsupport, too. This didn't help, but it revealed that the signer certificate of those keys has expired. So, I created a new keystore holding the dn, di, dk for me, as well as new kindlet, kindletnetworksupport and kindletinteractionsupport. Uploaded the keystore to /var/local/java/keystore, shutdown -r 0, then created a new azw2 that's signed with the new keys, uploaded to /mnt/us/documents, clicked on it -> same error >