DOC PREVIEW
UF COP 3530 - JDK Environment Variables

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

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesCOP 3530COP 3530JDK Environment VariablesJDK Environment VariablesEnvironment Variables•Environment variables are a set of dynamic values that can affect the way processes behave on a computer. [1]COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesPATH•PATH is an environment variable listing a set of paths to directories where executables may be found. [2]COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesCLASSPATH•CLASSPATH is an environment variable that tells the Java Virtual Machine where to look for user-defined classes and packages in Java programs. [3]COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesSetting the PATH and CLASSPATH in Microsoft Windows Vista•Step 1: Click Start → Control Panel → System and Maintenance → System.COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesSetting the PATH and CLASSPATH in Microsoft Windows Vista•Step 2: Select Advanced system settings.COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesSetting the PATH and CLASSPATH in Microsoft Windows Vista•Step 3: On the Advanced tab of the System Properties window, select Environment Variables.COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesSetting the PATH•Step 4a: Update your system PATH by selecting it in the System variables list and clicking Edit. If the PATH variable does not exit, create a new one via New.Append the location of the bin folder of your JDK installation to PATH in System variables. A typical value for the location is below.C:\Program Files\Java\jdk1.6.0_<version>\bin.The PATH environment variable is a series of directories separated by semi-colons (;) and is not case sensitive. Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a JDK in the path at a time.If you are not sure where to add the path, append it to the right end of the PATH.The new path takes effect in each new command window you open after setting the PATH variable.COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesSetting the CLASSPATH•Step 4b: Update your user CLASSPATH by selecting it in the User variables list and clicking Edit. If the CLASSPATH variable does not exit, create a new one via New.Append the working directory (if it is not listed) and the directory of the code for the textbook. An example entry is below..; C:\COP3530\eprogsThe symbol “.” signifies the working directory.The changes take effect in each new command window you open after setting the CLASSPATH variable.COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesSetting the PATH and CLASSPATH in Microsoft Windows•Step 5: Test your settings.Open a command prompt and go to the directory of the code for the texbook. Enter the dataStructures directory, then run the commands below at the prompt.javac ArrayLinearList.javajava dataStructures.ArrayLinearListThe desired output is below.Initial size is 0The list is emptyList size is 4The list is [1, 2, 4, 6]The index of 4 is 23 not foundElement at 0 is 1Element at 3 is 62 removedThe list is [1, 4, 6]6 removedThe list is [1, 4]The list is not emptyList size is 2COP 3530COP 3530JDK Environment VariablesJDK Environment VariablesReferences•[1] http://en.wikipedia.org/wiki/Environment_variable•[2] http://en.wikipedia.org/wiki/Path_(computing)•[3]


View Full Document

UF COP 3530 - JDK Environment Variables

Download JDK Environment Variables
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view JDK Environment Variables and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view JDK Environment Variables 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?