Possible result for an incorrect Java installation. Pay particular attention to the need for a correct pathĮnvironment variable. If you enter either command and get something similar to that shown inįigure 4, you need to go back and troubleshoot the installation of the Java Getting a correct response for both tests is an indication that the Java JDK is Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing) Java(TM) SE Runtime Environment (build 1.7.0_25-b17) The folder named bin should contain a file namedĮnter the java command shown in Figure 3. The format of this path will vary somewhat depending on which operating In the event that you do not get this response, you will probably need to setĮnvironment variable on your computer to point to something similar to theįollowing: C:\Program Files (x86)\Java\jdk1.7.0_25\bin Type the javac command shown in Figure 2 immediately to the right of Should be a blinking cursor immediately to the right of the ">". Typically this window will have a black background with white text. C:\jnk\3>cmdĬopyright (c) 2006 Microsoft Corporation. This should cause aĬommand-line window to open that looks something like that shown in Figureġ: Figure 1. Not txt.) The file should contain the word cmd and that wordĭouble click on the file named aacmd.bat. Use your favorite text editor to create a text file named aacmd.bat
#Compiling java file install
The address provided in the course syllabus.įor working at home, you will need to download and install the latest version of the
#Compiling java file for free
The JDK can be downloaded for free from Oracle at
(Note that the JDK isĪlready installed on the computers in the computer labs at NRG.) (JDK) must be installed on your computer. Java 1560: Configuring Your Computer Installing Javaīefore you can compile and run Java programs, Oracle's Java Development Kit Instructions to fit that operating system.Īlso see an alternative set of instructions on the following webpage. Running under a different operating system, you will need to translate these
These instructions assume that you are running under Windows. The official web page for this course is ITSE2321.htm Compiling and/or Running Java from the Command Line Spring 2018 Revised 11/21/17 ITSE 2321 Richard G Baldwin (512) 223-4758, NRG Room 4238, ITSE2321 Object-Oriented Programming This material applies to classroom sections and Distance Learning sections