Results 1 to 4 of 4
Like Tree3Likes
  • 1 Post By pbrockway2
  • 2 Post By Kai Tak

Thread: new project - please help!

  1. #1
    Kai Tak is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Default new project - please help!

    hi everyone,

    i am very new to java. I have some basic experience programming in java using eclipse and have made a number of programs in an empty project which i downloaded using a link from the internet on the stanford website. (CS106A Programming Methodology)
    I can do all my assignments creating classes in this project. I really don't understand how this project was created (i.e. which libraries are included or other stuff that makes this project unique).
    I would like to create a new project from scratch that has all of the information that this empty project has. How can I do this. I'm afraid my understanding of libraries and packages is very limited so if somebody can take the time to explain it to me in a simplistic way, I would really appreciate it.

    So to sum up, I would like to create a new project that contains all of the information from the empty project that I downloaded from the above link.
    Thank you very much,
    Al

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: new project - please help!

    I tried the following using Eclipse (Indigo):

    * downloaded BlankProject.zip from the "resources" page at the link you gave
    * unzipped the contents (a BlankProject folder) onto my desktop
    * choose "File -> Import..." from the Eclipse menu
    * under the "General" tab in the dialog I choose "Existing projects into workspace" and browsed to the BlankProject folder on the desktop
    * made sure "Copy projects into workspace" was checked and hit "Finish"

    At that point I had a new project called EmptyProject which included a BlankClass.java and, most importantly, the acm.jar was included under "Referenced libraries". At this point the project and the class can be renamed etc within Eclipse. The BlankProject folder can be resued - but you have to rename the project in Eclipse first because it won't let you import another project into the workspace if one with the same name already exists.

    (For reference you can type "import project" into the Eclipse help browser and look for "Importing existing projects".)
    Fubarable likes this.

  3. #3
    Kai Tak is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Default Re: new project - please help!

    Thank you so much pbrockway2 for your helpful and informative reply. Followed your advice and achieved what I wanted to very easily.
    cheers,
    al
    Fubarable and DarrylBurke like this.

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: new project - please help!

    You're welcome. I know just how frustrating it can be to get an environment set up so you can try things out. (If you have any connection with Stanford you could mention to the that a few words of instruction along with the download wouldn't go astray.)

    Good luck with Karel and programming.

Similar Threads

  1. Replies: 7
    Last Post: 11-27-2012, 11:16 AM
  2. Replies: 1
    Last Post: 05-17-2012, 10:43 PM
  3. Creating a project in eclipse from existing project
    By Suraiya in forum New To Java
    Replies: 1
    Last Post: 10-08-2011, 10:14 AM
  4. Adding a project to an existing project
    By Seijuro in forum NetBeans
    Replies: 4
    Last Post: 08-08-2010, 11:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •