Skip to main content



      Home
Home » Newcomers » Newcomers » Cant run Karel the robot or other kinds of programs in Eclipse(Eclipse troubleshooting)  () 1 Vote
icon5.gif  Cant run Karel the robot or other kinds of programs in Eclipse [message #762223] Wed, 07 December 2011 13:23 Go to next message
Eclipse UserFriend
index.php/fa/6371/0/index.php/fa/6371/0/Hi!
I am a beginner and I cant run Karel the robot(from the CS106A Stanford class)in Eclipse on Windows XP.After I run CollectNewspaperKarel.java, I get a blank screen shown on the picture.
I also tried Indigo version but I got the same thing.
Could you please help me?
Thanks,John

index.php/fa/6371/0/
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #762226 is a reply to message #762223] Wed, 07 December 2011 13:25 Go to previous messageGo to next message
Eclipse UserFriend
I want to apologize for adding several copies of the same picture!It was a mistake!
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #762246 is a reply to message #762223] Wed, 07 December 2011 13:55 Go to previous messageGo to next message
Eclipse UserFriend
On 07-Dec-11 11:23, JohnFord99 wrote:
> Hi!
> I am a beginner and I cant run Karel the robot(from the CS106A Stanford class)in Eclipse on Windows XP.After I run CollectNewspaperKarel.java, I get a blank screen shown on the picture.
> I also tried Indigo version but I got the same thing.
> Could you please help me?
> Thanks,John

Sorry, this forum isn't a help section for college students. And no one
here knows about Karel the Robot either: check with the lab rats on
campus or your instructor.

Best of luck to you.
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #767400 is a reply to message #762223] Sat, 17 December 2011 17:41 Go to previous messageGo to next message
Eclipse UserFriend
Don't know if you ever figured this out, but uninstalling JRE7 and installing JRE6 should do the trick. Also, make sure you install the JRE that corresponds to your Eclipse version (with regards to x86 or x64).

Also, to Russell: these course materials are freely available on the web through SEE (Stanford Engineering Everywhere), so there is a good chance he is not taking it as coursework.

[Updated on: Sat, 17 December 2011 17:44] by Moderator

Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1062604 is a reply to message #767400] Sun, 09 June 2013 17:50 Go to previous messageGo to next message
Eclipse UserFriend
I know this an old thread, but thanks guys - it worked when I used JavaSE 1.6 (java-6-openjdk). (I had to change the build path for JavaSE 1.7 and install a new JRE path for Java6, using the existing Java7 paths as a guide.)
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1222280 is a reply to message #1062604] Thu, 19 December 2013 22:34 Go to previous messageGo to next message
Eclipse UserFriend
Im having the same problems. Im sure its because the JRE isnt matching. Every other part of Eclipse is working except when it comes to running a Keral simulation Sad
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1740100 is a reply to message #1222280] Tue, 09 August 2016 05:13 Go to previous messageGo to next message
Eclipse UserFriend
BLANK WINDOW SOLUTION:

Like those before me, I was pulling my hair out trying to fix the blank window problem. I tried PC (Windows 10), Mac (El Capitan) and nothing would work. As the problem was platform neutral, I suspected it was a Java problem, though I couldn't go back to 1.6 due OS compatibility issues. It turns out that adding a single line to the code fixes it: private static final long serialVersionUID = 1L; before the run method. It appears the serialVersionUID is a mandatory requirement in Java 1.8 that wasn't the case in 1.6. Good luck to you all; now I just have to wait for my hair to grow back, after pulling most of it out in frustration!

Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1779327 is a reply to message #1740100] Fri, 05 January 2018 07:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi Casey,

I had the similar problem as John, and did what you suggested but the blank window bug still occurs, with another error appearing (see the screenshot). Do you know anything about this?

Thaaaaanks
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1779672 is a reply to message #1779327] Wed, 10 January 2018 22:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ghali,

I'm afraid I can't say much more, only to note that I did notice the solution failed to work when I pasted that code in but did work when I typed it out. Something to do with the internal referencing system?

Casey

[Updated on: Wed, 10 January 2018 23:00] by Moderator

Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1792687 is a reply to message #1779672] Sat, 21 July 2018 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Ok guys, so I created an Eclipse account just to help on this situation I faced and spent a whole night to solve.

requirements are very simple, Java Version must match the Assignments required version.

I struggled going with many trials, ans with assignment version in CS106a page from late June, the java version needed is :

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

As long as this is the version set in your WINDOWS - PREFERENCES Menu, in the option JAVA - INSTALLED JRE's, you are ok to run your programs and the Karel emulator show up.

In case you need older or more recent versions installed, it does not hurt as long as the required version is established as default on the installed JRE preferences.

Glad to know it worked!
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1817434 is a reply to message #1792687] Fri, 22 November 2019 01:17 Go to previous messageGo to next message
Eclipse UserFriend
@Celestino Mendez

I use the eclipse 2019-8 which find in one of Stanford page .
I tried jdk 1.11 but see blank page again. Use the jdk 1.8 and give me following warning "the compiler compliance specified is
10 but jre 1.8 is used.". My Mac OS version is 10.12.3 it is helpful. Can you help me?
P.S. I can't add link :(
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1823262 is a reply to message #1817434] Mon, 23 March 2020 16:05 Go to previous messageGo to next message
Eclipse UserFriend
Did you ever solve your problem?
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1826835 is a reply to message #1823262] Fri, 01 May 2020 18:36 Go to previous messageGo to next message
Eclipse UserFriend
@Celestino Mendez
@sara rm


I am running Mac Version 10.14.6 and installed Eclipse Version 2018-09 (4.9.0). I installed jdk-11.0.1.jdk initially but encountered the same problem as everyone else: when I click run the window that pops up is blank. I switched to jdk1.8.0_251.jdk with Java HotSpot(TM) 64-Bit Server VM and now when I try to run the program I get the same error as Sara.

Please help if you get a chance. Thanks for any suggestions.
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1842876 is a reply to message #1826835] Sun, 04 July 2021 17:58 Go to previous messageGo to next message
Eclipse UserFriend
Still having this problem as well. Any updates? Using java 1.8 did not solve problem. Does eclipse version matter?
Re: Cant run Karel the robot or other kinds of programs in Eclipse [message #1842904 is a reply to message #1842876] Mon, 05 July 2021 17:42 Go to previous message
Eclipse UserFriend
Are there instructions that everyone is following? It sounds like they're in dire need of updating.
Previous Topic:How do I add a multi-column row to a TableViewer?
Next Topic:Dependency injection with @inject
Goto Forum:
  


Current Time: Mon May 12 20:59:23 EDT 2025

Powered by FUDForum. Page generated in 0.11980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top