Skip to main content



      Home
Home » Newcomers » Newcomers » Scrapbook giving "source not found" error(Trying to do Mark Dexter's Totalbeginner Tutorial Lesson3)
Scrapbook giving "source not found" error [message #638131] Wed, 10 November 2010 00:46 Go to next message
Eclipse UserFriend
Just starting out with Eclipse and Java and trying to do Mark Dexter's tutorials.

I'm stuck on MacOS X Tiger, so have to use Eclipse 3.3.2 which I've got up and running and have installed a number (maybe too many?) of extras/updates.

Have created a Person class in a package in a new project.
Have imported the spec into a Scrapbook page.

Enter the following:

Person p = new Person();
p

Highlight and hit Evaluate, gives me a new pane, entitle CodeSnippet_4.run()

with a nice red message "Source not found".

Just not sure what I might be missing here?

Any help would be appreciated so I can get back to the tutorial.

[Updated on: Wed, 10 November 2010 00:59] by Moderator

Re: Scrapbook giving "source not found" error [message #638371 is a reply to message #638131] Wed, 10 November 2010 23:10 Go to previous messageGo to next message
Eclipse UserFriend
Have upgraded to Helios (carbon) and getting same result.

Re: Scrapbook giving "source not found" error [message #638568 is a reply to message #638131] Thu, 11 November 2010 11:07 Go to previous messageGo to next message
Eclipse UserFriend
xkanuk wrote:
> Just starting out with Eclipse and Java and trying to do Mark Dexter's
> tutorials.
> I'm stuck on MacOS X Tiger, so have to use Eclipse 3.3.2 which I've
> got up and running and have installed a number (maybe too many?) of
> extras/updates.
>
> Have created a Person class in a package in a new project.
> Have imported the spec into a Scrapbook page.
>
> Enter the following:
>
> Person p = new Person();
> p
>
> Highlight and hit Evaluate, gives me a new pane, entitle
> CodeSnippet_4.run()
>
> with a nice red message "Source not found".
>
> Just not sure what I might be missing here?
This works fine for me.

Dani
>
> Any help would be appreciated so I can get back to the tutorial.
>
>
Re: Scrapbook giving "source not found" error [message #638658 is a reply to message #638568] Thu, 11 November 2010 20:53 Go to previous messageGo to next message
Eclipse UserFriend
When I installed Helios, it pointed to existing workspace.
I moved Europa and all its stuff to a separate folder, then installed Helios carbon, set up new workspace, ran the tutorial and now it's working.

Thanks Dani, for your post which made me think it had to do with something I did/didn't do installing.
icon7.gif  Re: Scrapbook giving "source not found" error [message #997058 is a reply to message #638131] Thu, 03 January 2013 09:05 Go to previous messageGo to next message
Eclipse UserFriend
Just posting for any more noobs like me trying to find the solution to this problem:

This was appearing for me when I used ArrayList object (Lesson 9).

You may note that the "Problems" pane contains a warning about the Build Path Execution Environment is set as J2SE1.4 or something.

You need to change it to 1.6. To do that you need to do the following:

RightClick on your project -> Properties -> Java Compiler

There, you need to make sure:

1. Enable project specific settings is checked
2. Uncheck Use compliance from execution environment 'J2Se 1.4'....
3. Set "Compliance compliance level" to 1.6

Re-build your project and you're done. Proud
Re: Scrapbook giving "source not found" error [message #1680324 is a reply to message #638131] Mon, 16 March 2015 20:05 Go to previous message
Eclipse UserFriend
I've also encountered the "Source not found" error while inspecting statements in the Eclipse Scrapbook.

My resolution was to update the path in my Environment Variable list after upgrading to a newer version of Eclipse.

On a Win8.x system:
1. Open Control Panel\System and Security\System.
2. Select Advanced System Settings from the left.
3. From the Advanced tab, select Environment Variables at the bottom.
4. Select JAVA_HOME from system variables, and edit to your latest version folder.
5. Reboot to ensure new variables apply.
Previous Topic:Update label in element
Next Topic:Problem running HelloWorldSWT on Mac OSX
Goto Forum:
  


Current Time: Wed Jul 23 15:15:12 EDT 2025

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

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

Back to the top