TOC PREV NEXT INDEX



The Classpath


The Classpath is where Simplicity looks for Java classes. It can include directories, Zip files, and Jar files. The Classpath should indicate directories at the root of the subtree of your java files. For example, a user wishes to access the class com.datarp.calc.Calculator. If the "com" directory is located inside a directory named MyProjects, then the entry on the Classpath would be similar to /home/user/MyProjects. Simplicity will search through the Classpath starting at the top, and stopping when the specified class is found.

Simplicity will first look for classes in the CLDC and com.sun.kjava packages. Simplicity will next check for classes on the dynamic 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.


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