Java Compiler Version | Telit Cinterion IoT Developer Community
June 11, 2018 - 10:46am, 6572 views
Hai! I received the installstallation CD from the distributor. However i went through the userguide, there was one part mentioning Java compiler setting should be set to 1.3 or 1.4. But what i get from my distributor was a jdk 1.7 version. Does this effect on my project when using Eclipse for Java Development? Coz what i experienced was an abnormal exit when i ran a Midlet file in Eclipse with the installation of jdk 1.7.
JDK 1.7 is what is needed. But in the project configuration you don't configure Java standard edition but the libraries from Gemalto (please check 'Project Properties' / 'Java Build Path'). When you open 'Java Compiler' you should see 'Compiler compliance level' set to 1.3 and 'Use default compliance settings' checked.
Please write what module you have (ATI1 command reply), debugger log and more details about the problem if it still exists.
I c. What i do is switch to netbean. Besides, i trying to reach out aws iot with netbean. I have signing the keystore file under properties. But i get this error: The content provider certificate issuer is unknown. Do u know y? Before my keystore, i performed this
download 3files ( private, public and cert )from aws.
openssl pkcs12 -export -in <certificate-file> -inkey <private-key-file> -out p12.keystore -name alias
keytool -importkeystore -srckeystore p12.keystore -srcstoretype PKCS12 -srcstorepass <export-password>-alias alias -deststorepass <keystore-password> -destkeypass <key-password> -destkeystore my.keystore
Signing this in netbean. I also tried to copy the file into the module but the operation not allowed. Then i performed
+CME ERROR: Unknown
Anything that i'm doing wrong?
There's no at^sfsa? command, please send at^sfsa=? to check if at^sfsa is working.
Are you following this tutorial https://iot-developer.thalesgroup.com/showcase/concept-board-connection-... ?
My sfsa is not working. I still get the same error.
Yup. I'm following that tutorial. But using keystore to load my all certificate files. The program code I modified from aws iot sdk.
Please check AT^SCFG? output for this setting : '^SCFG: "Userware/Autostart"'. It should be set to 1. Without it JRC MIDlet will not be started automatically. And without JRC some AT commands will not be working.
As for AWS I'd suggest you to follow exactly the described steps at first to have the proof of concept. AWS SDK is rather for standard edition.
I will proceed with that command.
I tried it before but somehow getting a lots of problems too. Do I actually can just copy for the program code? Does it works? The code in the tutorial just looks like missing a lot of thing. I mean there was not line for loading the certificate. For the certificate, do I need to proceed with special command for it? Like authenticated?
I'm following the tutorial steps by steps. But when i finished typed the program code and copy the file to module to proceed with at^sjam=0,"a:/MobileApplication1.jad","" , I get this +CME ERROR: operation not allowed. AT^SJAM=4 works ok,
^SJAM: "SLAE.jad","SL Agent Module Services","Gemalto M2M GmbH","2.1.1",0,422843,0
^SJAM: "a:/JRC-1.56.54.jad","Java Remote Control MIDlet Suite","Cinterion","1.56.54",1,789491,0
and AT^SJAM=5 also works normal.
^SJAM: "a:/JRC-1.56.54.jad","Java Remote Control MIDlet Suite","Cinterion","1.56.54",1
Do i missed out anything? The scfg=Userware/Autostart","1". If I skip the step st^sjam=0, i get this ^SIS: 0,0,200,"error in sendRequest Certificate failed verification". The program code i followed exactly the same in the tutorial.
R u still there, Bartłomiej?
There are the commands for installation of the certificates:
Have you used them?
Is this "error in sendRequest Certificate failed verification" thrown when you connect to AWS or some other site? When you enable the certificate verification you need certificate for every site you connect with TLS.
Yes. I did at^sjmsec for both the cert. And get the result 1,1,1,1 from at^sjmsec. The error in sendRequest Certificate failed verification shows up when I try to run the midlet file (not yet setting up my service and connection profile with at command.
I tried to use Java too. But I also get error to compile. It's so confused. sometime I just try to delete the jad and jar files in the module and copy again but it can't install back with at^sjam = 0. Operation not allowed. At^scfg autorun is on. Sometimes I run the file, it gives java.lang. noclassdeffounderror: org/eclipse/paho/client/mqttv3/mqttexception. I do add the jar file of Paho.client. Do I missed anything? I'm not sure whether is my program when wrong or any setting I had missed out.