Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Beginner trying to open first "Assignment"
Beginner trying to open first "Assignment" [message #1803128] Fri, 22 February 2019 21:12 Go to next message
Philip Stadulis is currently offline Philip StadulisFriend
Messages: 1
Registered: February 2019
Junior Member
Hey All,

Today's my first day learning Java. I've started taking an old Stanford Engineering Everywhere course (Standford SSE CS106A/172). I attempted to install the version of Eclipse found in their course documents (Release 3.2.1) but I was unable to install it. Instead I downloaded the most recent version straight from Eclipse.org. Then I downloaded their "Starter Code" found in Assignments.

I imported "Assignment 1" and now when I try to run the code I get an 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'm wondering if there could be compatibility issues with the code provided by the course and the version of Eclipse I'm using, and that this could be my problem? Or, is there a simple configuration setting I need to set?

Any help would be much appreciated!

-Phil
Re: Beginner trying to open first "Assignment" [message #1803129 is a reply to message #1803128] Fri, 22 February 2019 21:53 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4507
Registered: July 2009
Senior Member

Not having the source in question, I'd suggest you set a Java Exception Breakpoint (https://www.vogella.com/tutorials/EclipseDebugging/article.html#exception-breakpoints) for NullPointerExceptions and figure out which part of the statement on line 917 is null when it's not expected to be.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Executor.execute() is very slow
Next Topic:Unable to open Flash sites in Eclipse in MAC Mojave
Goto Forum:
  


Current Time: Sun Jan 26 13:08:37 GMT 2025

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

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

Back to the top