我正在尝试上传我的脚本从我的笔记本电脑到我的NXT机器人。使用线缆连接到NXT。当我按下Run as NXT按钮时,我得到以下错误:
js.tinyvm.TinyVMException: Invalid byte tag in constant pool: 15
....
Caused by: org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15
Linking the file failed with exit status 1我看过类似的问题,但他们有一个问题,我的代码没有使用。我正在使用的代码:
public class move {
public static void main() {
Motor.B.setSpeed(300);
Motor.A.setSpeed(720);// 2 RPM
Motor.C.setSpeed(720);
Motor.A.forward();
Motor.C.forward();
Motor.B.rotateTo(90);
Delay.msDelay(1000);
Motor.A.stop();
Motor.C.stop();
Motor.B.rotateTo(-90);
Delay.msDelay(1000);
Motor.A.rotate( 90);
Motor.C.rotate(90);
}
} 发布于 2018-11-16 09:38:48
出现问题是因为我的JDK是1.8,而NXT需要1.7版本的JDK
https://stackoverflow.com/questions/53284029
复制相似问题