Run processing language in Command prompt or Eclipse

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

//________________________________

Tagged:
Sign In or Register to comment.