{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

14CommandlineSmall

14CommandlineSmall - Lecture Set#14 Command Line Running...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CMSC 131 Fall 2009 Jan Plane (adapted from Bonnie Dorr) Lecture Set #14: Command Line Running Issues & Comments 1. Command-line Java 2. Arguments to Main Method 3. Commenting Review CMSC 131 Fall 2009 Jan Plane (adapted from Bonnie Dorr) 1 Command-Line Java circle6 Source File: circle6 an ASCII text file named appropriately for the class it contains (i.e. ClassDemo.java ) circle6 created by an editor (emacs, vi, edit, notepad…) circle6 Translate to byte code: circle6 javac ClassDemo.java circle6 creates a file named ClassDemo.class circle6 Run (and interpret the Byte Code): circle6 java ClassDemo circle6 runs the java application defined in the the ClassDemo file circle6 Finding Things circle6 For the System to be able to find javac and java circle6 Command Search Path must be set it is named PATH circle6 For the System to be able to find the class named as the argument to the java command circle6 The Class Search Path must be set it is named CLASS PATH circle6 Both of these are set in Windows using the Control
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}