We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello. I have a code witch works in processing but not in Command prompt or Eclipse because of few errors.
Error 1 - in Command prompt
C:\Work>javac -cp ;core.jar Robot.java
Robot.java:304: error: '.class' expected
int randomDirection = int (random(4));
^
Robot.java:304: error: ';' expected
int randomDirection = int (random(4));
//________________________________
Error 2 - in Eclipse
- The method random(int) is undefined for the type
Robot
- Syntax error on token "int", delete this token
- The method random(int) is undefined for the type
PVector
//________________________________