Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:46 Go to next message
xkanuk is currently offline xkanukFriend
Messages: 4
Registered: November 2010
Junior Member
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 05:59]

Report message to a moderator

Re: Scrapbook giving "source not found" error [message #638371 is a reply to message #638131] Thu, 11 November 2010 04:10 Go to previous messageGo to next message
xkanuk is currently offline xkanukFriend
Messages: 4
Registered: November 2010
Junior Member
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 16:07 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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] Fri, 12 November 2010 01:53 Go to previous messageGo to next message
xkanuk is currently offline xkanukFriend
Messages: 4
Registered: November 2010
Junior Member
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 14:05 Go to previous messageGo to next message
Haris Saleem is currently offline Haris SaleemFriend
Messages: 1
Registered: January 2013
Junior Member
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] Tue, 17 March 2015 00:05 Go to previous message
Gordon Lippa is currently offline Gordon LippaFriend
Messages: 1
Registered: March 2015
Location: Seattle, WA
Junior Member
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.


Microsoft stack pro
Java stack noob
Previous Topic:Update label in element
Next Topic:Problem running HelloWorldSWT on Mac OSX
Goto Forum:
  


Current Time: Fri Mar 29 06:29:23 GMT 2024

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

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

Back to the top