Skip to main content

Posts

Showing posts with the label JDK

Wild Cards while specifying the class path

A class path entry that contains * will not match class files. To match both classes and JAR files in a single directory foo , use either foo; foo/* or foo/*;foo . The order chosen determines whether the classes and resources in foo are loaded before JAR files in foo , or vice versa. Subdirectories are not searched recursively. For example, foo/* looks for JAR files only in foo , not in foo/bar , foo/baz , etc. If u want to load jars files or class file in a specific order that u have to specify the list itself in the class path but not using the wild cards. Expansion of wildcards is done early, prior to the invocation of a program's main method, rather than late, during the class-loading process itself. Each element of the input class path containing a wildcard is replaced by the (possibly empty) sequence of elements generated by enumerating the JAR files in the named directory. For example, if the directory foo contains a.jar , b.jar , and c.jar ,...

JDK and JRE File Structure

Assuming the JDK software is installed at c:\jdk1.7.0, here are some of the most important directories: c:\jdk1.7.0 Root directory of the JDK software installation. Contains copyright, license, and README files. Also contains src.zip, the archive of source code for the Java platform. c:\jdk1.7.0\bin Executable files for the development tools contained in the Java Development Kit. The PATH environment variable should contain an entry for this directory. For more information on the tools, see the JDK Tools . c:\jdk1.7.0\lib Files used by the development tools. These include tools.jar, which contains non-core classes for support of the tools and utilities in the JDK. Also includes dt.jar, the DesignTime archive of BeanInfo files that tell interactive development environments (IDE's) how to display the Java components and how to let the developer customize them for an application. c:\jdk1.7.0\jre Root directory of the Java runtime environment used by the JD...

Additional Files and Directories

This section describes additional files and directories. c:\jdk1.7.0\src.zip Archive containing source code for the Java platform. c:\jdk1.7.0\db Contains Java DB. c:\jdk1.7.0\demo Examples, with source code, that show you how to program for the Java platform. c:\jdk1.7.0\demo\applets Applets that can be used on a web page. c:\jdk1.7.0\demo\jfc Examples that use Java 2D™ and JFC\Swing functionality. c:\jdk1.7.0\demo\jpda Examples of using the Java Platform Debugging Architecture. Includes source code for the javadt and jdb utilities. c:\jdk1.7.0\demo\plugin Contains demos for use with the Java Plug-in product. c:\jdk1.7.0\include C-language header files that support native-code programming using the Java Native Interface and the Java Virtual Machine Debugger Interface.