Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7172099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:32:52+00:00 2026-05-28T15:32:52+00:00

I have started taking the course Programming methodology(CS106A) available at stanford website. But I

  • 0

I have started taking the course Programming methodology(CS106A) available at stanford website.
But I am not able to start the Stanford Karel in it.

I am using eclipse indigo classic 3.7.1 and Windows 7 64 bit OS..

I wrote the following code:

import stanford.karel.*;

public class CollectNewspaperKarel extends SuperKarel {
    // You fill in this part
    public void run(){
      move();
      move();
    }
}

It gives the error

Exception in thread "main" java.lang.NullPointerException
   at acm.program.Program.main(Program.java:917)
   at stanford.karel.Karel.main(Karel.java:202)

I followed some instructions given here but then got a blank screen as the output.

The assignment1 of stanford can be found here, and karel the robot of stanford is available here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:32:53+00:00Added an answer on May 28, 2026 at 3:32 pm

    You are getting that error because you are not using the Eclipse version provided by the Stanford University. For more detailed information,

    Edit: Deleted this link as it is not working anymore.

    Edit:

    Since the above link is not working anymore, I wrote the following steps. Since I am not using Karel anymore, if someone followed through the guide and can make any corrections, please comment of edit this answer.

    Instructions:

    a.Visit Stanford website and download the following softwares

    1. Eclipse for windows from Stanford
    2. Java Jre software

    b.Install the softwares.

    c.Download Assignment1.zip from Assignments tab.

    d.Install the Assignment into Eclipse.

    Now, we are done with the setup guide. Lets discuss about the common problems:

    Problems:

    Problem 1 : Blank Screen

    This means, you installed the latest version of the Sun Java JRE software.
    The solution to this problem is
    I. Uninstall all the JRE software versions except the one downloaded from the Stanford Website.

    OR, try this

    a.Open Eclipse Software.

    b.In the Menu toolbar, Click Window and then Click Preferences

    c. Follow these simple steps:

    1. In the Preferences window, Click Java.
    2. In the drop down section shown under Java, click Installed JREs.
    3. The JRE we downloaded from the Stanford website is the jre6 update 2. So select it. Only jre6 is compatible with the stanford eclipse software.
      So, uncheck all the other versions installed in your system and check the jre6 box as shown in the image below.
    4. Click Ok.
      5.Run the program. Now you can see that the output is fine.

    Problem 2 : Error

    When you run the program, you may sometimes notice this error.

    *

    *Exception in thread "main" java.lang.NullPointerException
        at acm.program.Program.main(Program.java:917)
        at stanford.karel.Karel.main(Karel.java:202)*
    

    *

    This means you did not download the Stanford Eclipse Software and you are using the latest version of the Eclipse that you have downloaded from the Eclipse website. So follow the detailed guide that I mentioned above. Everything will work fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started design of a ColdFusion application that is entirely web based. Not
A have a Perl cron job that recently started having its HTTPS connections start
I am trying to learn mySQL database, and have started taking a look at
I just started taking a class on C# .NET and have found it really
I have started a long loop, and i dont want to start it over
I just started taking an Assembly Language course in College. We are using the
I am taking an HTML / Web Design course and just started it the
I have started playing around with CoreData and taking a new project with CoreData
I have just started programming in Objective-C, I understand it only partially supports method
I have started using Jython as it seems to be a excellent language, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.