TOC PREV NEXT INDEX



The Classpath


The Classpath is where Simplicity looks for Java classes on your hard drive. It can include directories, Zip files, and Jar files. The Classpath should indicate directories at the root of the subtree of your java files. If a user wishes to access the class datarep.common.Util, and the datarep directory is located inside a directory named MyProjects, the Classpath would need an entry similar to /home/user/MyProjects. Simplicity will search through the Classpath starting at the top, and stopping when the specified class is found.

Simplicity is started using a "primordial Classpath" which contains the core classes that Simplicity requires. This primordial classpath cannot be edited from within Simplicity, and so it is not displayed in the Project Tree. Simplicity will always check the dynamic Classpath first when looking for classes, then the primordial Classpath.

Simplicity will generate package statements based on where a file is with respect to the Classpath. In the example above, files created in the "MyProjects" directory will not have any package statements. Files created in the "datarep" directory will be made part of the "datarep" package. Complex packages can be created by having folders inside of folders.

All Jar files and Zip files placed inside the "lib" directory which, in turn is inside the "WEB-INF" directory of your project will automatically be placed on the dynamic classpath.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX