Then the compiled code can be executed on the

This preview shows page 1 - 3 out of 4 pages.

• then, the compiled code can be executed on the computer 6 Interpreters An interpreter translates and executes source code One instruction at a time is converted into machine code and executed by the processor
Image of page 1

Subscribe to view the full document.

CS101 Lecture 2 2 7 Java – a mixed system Java source code (MyProgram.java) Java byte code (MyProgram.class) javac.exe java.exe java.exe java.exe Computer 1 Computer 2 Computer 3 8 javac, java commands All Java files have the extension .java, e.g . To compile Java programs we use the javac command, e.g. To run an application we use the java command, e.g. javac MyApplication.java MyApplication.java java MyApplication MyProgram.java 9 Installing Java http:// / technetwork / java/ javase /downloads/ index.html This one This is the one you want to download if you have a 64 bit computer Otherwise this is the one you want to download Accept agreement 11 Installing Java This is the executable which you double-click to install Java. This is similar to the Windows installation file which is downloaded: Usually Java is installed in the "Program Files" folder in the C drive of your computer. 12 Java - What version? There are several equivalent names: Java Standard Edition Development Kit Java SE Development Kit JDK Any version since 5 is fine: JDK 6: JDK 1.6.
Image of page 2
Image of page 3
You've reached the end of this preview.

{[ snackBarMessage ]}

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