Eclipse Install and Hello World Instructions.pdf - AI and Creative Computation Massive Install Instructions Multiple Hellos Part 1 Installing and

Eclipse Install and Hello World Instructions.pdf - AI and...

This preview shows page 1 - 5 out of 15 pages.

AI and Creative Computation: Massive Install Instructions + Multiple Hellos! Part 1: Installing and running your first program on Eclipse. Includes how to use the depreciated Java 8 JRE necessary for the next steps. 1. Download and install the Java 8 JRE. 2. Download Eclipse. Choose the Eclipse for Java developers. You may be asked to accept a security certificate. As long as it says something like "Sun Microsystems / Java", etc then that is fine. Accept the certificates and move on. 3. Open Eclipse. 4. Select your workspace. This is just a folder or place on your hard drive where you will save your projects. You may just accept the default if you like. See below: Click "Launch" 5. You will be greeted with a welcome page. Click "Create a new Java project". Alternatively, click the top menu: Files->New->Java Project. This Dialog should come up:
Image of page 1

Subscribe to view the full document.

5. Enter in the Project name. Name it something appropriate. Like: HelloWorld. Or whatever you like. 6. Under JRE, choose “Use a project specific JRE”. THEN, choose Java 8. 7. Click “Finish” 8. If you still have the Hello screen up, click the “X” and close it. 9. You should see a setup like this: 10. OK! Now let’s add our first class. It will be our main class. Click from the top menu: File->New->Class. This dialog should come up: 11. OK, name your main class. Something like: “HelloWorldMain”. Or again, whatever makes sense to you.
Image of page 2
12. Answer the question: “Which method stubs would you like to create?” by clicking “public static void main(String[] args)” 13. Click “Finish” 14. Click green play button on the nested top menu: OK, it should do nothing when it runs but cause no errors. Let’s make it do something!! 15. Navigate in your project to the file that you created: HelloWorldMain.java – or whatever you named it. 15. Add the following line to your code in the file HelloWorld: System. out .println( "Hola, todos!" ); Such that the entirety of your code is: public class HelloWorldMain { public static void main(String[] args ) { // TODO Auto-generated method stub System. out .println( "Hola, todos!" ); } } 16. Now run it with the play option. (As before). It should do something now. Like print the string in the quotes. YAY! Do a little dance. This is probably your first program in Java in Eclipse. 17. Find your project file by browsing to your workspace folder in Finder (OS X) or Windows Explorer. Click on the folder with your project name and zip this folder & all contents. It is now ready to turn in. You may want to indicate this is Part 1 of the “Hello, World” project in the final name of the zip file.
Image of page 3

Subscribe to view the full document.

Part 2: Processing in Eclipse. A Note/Explanation: Before, when (or if) you used Processing, you were using an IDE (Integrated Development Environment) developed by the people who created the Processing. We can think of Processing as both the IDE/Application and the library of functions that allow the easy creation of creative/visual content in the Java programming language. Processing is a nice simple application that is easy to use but is fairly limited. Because of these limitations, professional coders do not use this IDE. Ergo, we will be using a more professional platform, Eclipse,
Image of page 4
Image of page 5
  • Fall '14
  • Bakos

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes