eclipse Pulsar 在使用cldc 1.1 所具有的nextInt(int n)和Math.PI、Math.sin,Math.cos 等方法常量时报错

查修谨
2023-12-01


这是错误信息:

Multiple markers at this line

- Syntax error, insert  
"AssignmentOperator Expression" to complete  
Expression

- PI cannot be resolved or is not a  field

解决的方法:

 Windows -> Preferences -> Java ME -> Device Management -> choose your Default Device -> Edit -> Libraries -> There you have to remove the cldc_1.0.jar

这是解决问题的原文链接(英文网站)

http://stackoverflow.com/questions/4172010/j2me-error-the-method-nextint-in-the-type-random-is-not-applicable-for-the-ar

 类似资料: