Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:23 Go to next message
JohnFord99 is currently offline JohnFord99Friend
Messages: 2
Registered: December 2011
Junior Member
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 18:25 Go to previous messageGo to next message
JohnFord99 is currently offline JohnFord99Friend
Messages: 2
Registered: December 2011
Junior Member
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 18:55 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 22:41 Go to previous messageGo to next message
51mmz0rz is currently offline 51mmz0rzFriend
Messages: 1
Registered: December 2011
Junior Member
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 22:44]

Report message to a 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 21:50 Go to previous messageGo to next message
Bren Eifler is currently offline Bren EiflerFriend
Messages: 1
Registered: June 2013
Junior Member
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] Fri, 20 December 2013 03:34 Go to previous messageGo to next message
Andy King is currently offline Andy KingFriend
Messages: 1
Registered: December 2013
Junior Member
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 09:13 Go to previous messageGo to next message
Casey Lewis is currently offline Casey LewisFriend
Messages: 2
Registered: August 2016
Junior Member
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 12:46 Go to previous messageGo to next message
Ghali Laraqui is currently offline Ghali LaraquiFriend
Messages: 1
Registered: January 2018
Junior Member
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] Thu, 11 January 2018 03:59 Go to previous messageGo to next message
Casey Lewis is currently offline Casey LewisFriend
Messages: 2
Registered: August 2016
Junior Member
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: Thu, 11 January 2018 04:00]

Report message to a 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 17:01 Go to previous messageGo to next message
Celestino Mendez is currently offline Celestino MendezFriend
Messages: 1
Registered: July 2018
Junior Member
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 06:17 Go to previous messageGo to next message
sara rm is currently offline sara rmFriend
Messages: 1
Registered: November 2019
Junior Member
@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 20:05 Go to previous messageGo to next message
robert fl is currently offline robert flFriend
Messages: 13
Registered: March 2016
Junior Member
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 22:36 Go to previous messageGo to next message
Ian  Evans  is currently offline Ian Evans Friend
Messages: 1
Registered: May 2020
Junior Member
@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 21:58 Go to previous messageGo to next message
Ford Holmen is currently offline Ford HolmenFriend
Messages: 1
Registered: July 2021
Junior Member
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 21:42 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Are there instructions that everyone is following? It sounds like they're in dire need of updating.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:How do I add a multi-column row to a TableViewer?
Next Topic:Dependency injection with @inject
Goto Forum:
  


Current Time: Fri Apr 19 07:47:26 GMT 2024

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

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

Back to the top