Java compiler setting | Thales IoT Developer Community
April 25, 2018 - 5:51am, 4067 views
Hai! I understand that the correct Java compiler setting ( Compiler compliance level ) should be set to 1.3 or 1.4 (from Java User guide) , but, from what i get from my distributer is jdk 1.7.0. So if i select 1.3 compliance, error occured because it's not compatible. Since i have already installed jdk 1.7.0, i would like to keep that instead of uninstall it and install jdk 1.3. Any solution can be done to avoid this?
P.s: I'm doing midlet to access aws. When running the midlet, i get java.lang.Error: ClassFormatError: 56 which i think the problem occur due to my classpath.
Hi Sharon,
You should be able to set 1.3 or 1.4 with the 1.7 sdk. Have you tried to use i wizzard to create the new MIDLet project? Then you don't need to change these versions. They will be set to proper values automaticaly for the project.
Best regards,
Michał
Hi
U mean from Java Build Path> library > JRE system libarry > edit library there? I tried this step and get another error again java.lang.NoClassDefFoundError: org/eclipse/paho/client/mqttv3/MqttCallback. Is it possible to ignore the errors and continue to the next steps (work on putty)? is so much troubles.
What is i wizzard? This is something new to me.
Thanks.
Hi,
In Java Build Path> library > JRE system libarry you may have 1.7.x. You should change in Properties->Java Compiler.
Wizard is in File->New->Project->Java ME -> MIDlet Project
Best regards,
Michał
Also answerring your question, I don't think it's possible to "ignore the errors and continue" since you probably want to compile your app. Then you need to have it all set right. But the New MIDlet wizzard should do it for you.
Best regards,
Michał