Lejos NXT ClassFormatException
up vote
0
down vote
favorite
Im trying to upload my script from my laptop to my NXT Bot. Connectinng to NXT using wire. When I press the Run as NXT button i get the following error:
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
I looked at similar problems but they had a problem with queing which my code does not use. Code I'm using:
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);
}
}
java lejos-nxj
add a comment |
up vote
0
down vote
favorite
Im trying to upload my script from my laptop to my NXT Bot. Connectinng to NXT using wire. When I press the Run as NXT button i get the following error:
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
I looked at similar problems but they had a problem with queing which my code does not use. Code I'm using:
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);
}
}
java lejos-nxj
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Im trying to upload my script from my laptop to my NXT Bot. Connectinng to NXT using wire. When I press the Run as NXT button i get the following error:
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
I looked at similar problems but they had a problem with queing which my code does not use. Code I'm using:
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);
}
}
java lejos-nxj
Im trying to upload my script from my laptop to my NXT Bot. Connectinng to NXT using wire. When I press the Run as NXT button i get the following error:
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
I looked at similar problems but they had a problem with queing which my code does not use. Code I'm using:
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);
}
}
java lejos-nxj
java lejos-nxj
asked Nov 13 at 15:13
TotallyNotSuspisousAccount
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Problem was occuring because my JDK was 1.8 and NXT required a 1.7 version of JDK
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Problem was occuring because my JDK was 1.8 and NXT required a 1.7 version of JDK
add a comment |
up vote
0
down vote
Problem was occuring because my JDK was 1.8 and NXT required a 1.7 version of JDK
add a comment |
up vote
0
down vote
up vote
0
down vote
Problem was occuring because my JDK was 1.8 and NXT required a 1.7 version of JDK
Problem was occuring because my JDK was 1.8 and NXT required a 1.7 version of JDK
answered Nov 16 at 1:38
TotallyNotSuspisousAccount
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53284029%2flejos-nxt-classformatexception%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown