C.13 Verifying Set-up

C.13.1 Java 2 Standard Edition (J2SE)

Windows Platform

Verify the CLASSPATH and CP variables , as shown in Figure C-10.

Figure C-10 Verify CLASSPATH Variables
 D:\>Set  more 

This should show the same environment variables as in your previous definition.

Verify the JRE installation by checking the version of the run time (see Figure C-11).

Figure C-11 Verify the J2SE Version Number
 D:\>  java -version  java version "1.4.0_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03) Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode) 

This verifies the same software version of the J2SE run-time library.

Verify the SDK installation, as shown in Figure C-12.

This denotes the Java compiler is available for compiling Java classes now.

Figure C-12 Verify the J2SE SDK Installation
 D:\>  javac -help  Usage: javac <options> <source files> where possible options include:   -g                        Generate all debugging info   -g:none                 Generate no debugging info   -g:{lines,vars,source}  Generate only some debugging info   -O                      Optimize; may hinder debugging or enlarge class file   -nowarn                 Generate no warnings   -verbose                Output messages about what the compiler is doing   -deprecation            Output source locations where deprecated APIs are used   -classpath <path>       Specify where to find user class files   -sourcepath <path>      Specify where to find input source files   -bootclasspath <path>   Override location of bootstrap class files   -extdirs <dirs>         Override location of installed extensions   -d <directory>          Specify where to place generated class files   -encoding <encoding>    Specify character encoding used by source files   -source <release>       Provide source compatibility with specified release   -target <release>       Generate class files for specific VM version   -help                   Print a synopsis of standard options 


J2EE Platform Web Services
J2EE Platform Web Services
ISBN: 0131014021
EAN: 2147483647
Year: 2002
Pages: 127
Authors: Ray Lai

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net