Saturday, June 30, 2012

"Karel the robot" in Linux.

How to get works "Karel the robot" program on linux from Stanford University course Programming methodology.

It will work on Eclipse SDK classic from eclipse site but if you want stanford's version you can take "edu.stanford.cs106_1.0.0.jar" file from "Eclipse for Windows" version from CS (programming methodology course) site, unzip, find folder called "plugins" and put it to your directory */eclipse/plugins. (or you can download this file somewhere, use search engine). After running Eclipse you will see additional Stanford's icons on panel and their menu.  

What you necessarily need is a java version 6 you can download it HERE (to have possibility to download from ORACLES archive you should be authorized, its free). Otherwise "Karel" won't work.

Ok, when you've got it and run eclipse make the following steps:
Project>Properties>Java Compiler> check "Enable project specific settings", Compiler compliance level choose 1.6.

Run Karel. Hope it's helpful for you. Have fun.

P.S. If you haven't installed stanford's panel or have problems with programs running. Use menu Run->Run Configurations -> choose appropriate (the same as your class name) Java Application on the left side of window and push RUN button.

jre-6u2-linux-i586-rpm.bin

No comments:

Post a Comment