Compile and run
Code:
- Public ClassHelloworld {
- Public Static VoidMain (string ARGs []) {
- System. Out. println ("Hello! World");
- System. Out. println (system. getproperty ("Java. Library. path"));
- }
- }
Result:
Hello! World
C:/program files/Java/jdk1.6.0 _ 17/bin ;.; c:/Windows/Sun/Java/bin; C:/Windows/system32; C:/windows; C:/Windows/system32; C:/windows; C: /Windows/system32/WBEM; C:/program files/common files/thunder Network/Kankan/codecs; C:/program files/tortoisesvn/bin; C: /program files/Microsoft SQL Server/80/tools/binn
----------------
Path, which must be called during Java CompilationProgram(Such as Java and javac.
Classpath class path. When compiling and running a Java program, if you call other classes, find the desired class in classpath.
______________________________
Generally, this path is the bin directory of the JRE directory under JDK referenced by your Java project. Java/JDK/JRE/bin.