Development Environment Check: Java Execution
Due Wednesday before class
Objective
to confirm that you can compile Java program files and execute the classes.
Practice on a Given Program
If you haven't already, set up your computer for Java development.
- Create a new directory with the directory that you're using for this class, e.g.,
practice
- Download First.java and save it in your
practice
directory. - In your terminal, navigate to your
practice
directory. - Compile and run
First.java
:- javac First.java
Compiles the program intoFirst.class
List the contents of your directory to seeFirst.class
- java First
Runs the JVM, which executes the bytecode
- javac First.java
- View
First.java
in your favorite text editor, e.g., if your text editor isjEdit
, you'd run
jedit First.java &. - Review the components of the program. Make sure you understand why the code outputs what it does.
Submitting your assignment
No submission. This is just on your honor that you do it, so you're ready for future work.