The Classpath
The Classpath is where Simplicity for Java 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 for Java will search through the Classpath starting at the top, and stopping when the specified class is found.
Simplicity for Java is started using a "primordial Classpath" which contains the core classes that Simplicity for Java requires. This primordial classpath cannot be edited from within Simplicity for Java, and so it is not displayed in the Project Tree. Simplicity for Java will always check the dynamic Classpath first when looking for classes, then the primordial Classpath. It is recommended, therefore, that the Classpath used to start Simplicity for Java be as simple as possible (just the Simplicity.jar file, the swingall.jar file, and the datarep_common.jar file), and all other changes to the Classpath be made within Simplicity for Java.
Simplicity for Java 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 |