Importing the Learning Java Examples

I wonder where to find the file "examples-eclipse.zip" for the book "Learning Java, 4th Edition". It ́s not to be found at the URL http://oreil.ly/Java_4E as it says.
4 people have
this problem
+1
Reply
  • I’m newbish.
    I'm having trouble finding the zip file containing the examples from Learning Java from the link in chapter 2 of the manual, I've tried everything from clicking the link to doing a google search on the individual file name, and have yet to find anything like what's shown in the book. What am I missing?

    This reply was created from a merged topic originally titled
    Learning Java 4E Examples: Where are you?.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Is the example code available for the new edition of "Learning Java", ISBN 9781449319243? I can't find the link on the book page or at the link in the Safari edition of the book. Thanks, in advance, for your help.

    This reply was created from a merged topic originally titled
    Is the example code available for the new edition of "Learning Java"?.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated

  • This reply was removed on 2013-06-25.
    see the change log
  • Greetings,

    The example Learning Java 4th edition will soon be up on the catalog page for the book on oreilly.com, but in the meantime it can be found here: https://github.com/patniemeyer/learni.... I hope this helps and have a great day!

    Kind regards,
    Paul Fichera
    Customer Service Representative
    O'Reilly Media
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated

  • This reply was removed on 2013-06-25.
    see the change log
  • Months later and there is still no working sample code linked from the O'Reilly site.

    Months after launch of the book and no clear, reasonable answer is unacceptable.

    I suggest you all start writing book reviews on the O'Reilly site and Amazon. When it starts to impact sales, O'Reilly might fix the problem.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated

  • PROBLEM SOLVED, FIX BELOW!

    Sigh....

    The archive you need is IN the archive that you download from the main page.

    examples-eclipse-ch2.zip

    When you click "Download Zip" you get a file names "learningjava-master.zip".

    Unzip that file, then open the folder and navigate to:

    learningjava-master -> examples -> eclipse project -> examples-eclipse-ch2.zip

    Even though it has a "ch2" on the end, it has the complete project. (I think they just put it there so that any reasonable person would NOT think to look at it...)

    To get the examples working, follow these steps.

    (Ignore the steps in the book--they are wrong, wrong, wrong!) This works with the latest version of Eclipse: Kepler.

    1) Go to http://oreil.ly/ Java_4E, click on Download Sample Code, which takes you to a github page, then click Download Zip and save the file to your Desktop (or other convenient place.

    2) The file you downloaded is named "learningjava-master.zip", extract that and you will get a directory names "learningjava-master". The zip file you really need is buried deep in there...

    3) Open Eclipse

    4) Go to File -> Import (don't create a project--you are importing one)

    5) Expand General and select "Existing Projects into Workspace" and click "Next"



    6) Choose "Select Archive File" and browse to learningjava-master -> examples -> eclipse project -> examples-eclipse-ch2.zip; select OK



    7) Click Finish

    Your project with example code has been imported to Eclipse and the examples run!



    So, if you remember the instructions are wrong, the file name is wrong and the codes is not where you expect it to be and the name makes no sense... you will do just fine!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated

  • I’m thankful
    Thank you John Berns! The code is no longer giving me an error when I run it, however many of them still aren't working. I run it, and a blank applet comes up, then a blank gray box next to it. Does all of yours work fine? I also have Eclipse Juno, so that may affect it.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated