![]() |
![]() |
![]() |
![]() |
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. It is recommended, therefore, that the Classpath used to start Simplicity be as simple as possible (just the Simplicity.zip file, the Swingall.jar file, and the datarep_common.jar file), and all other changes to the Classpath be made within Simplicity.
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 |
![]() |
![]() |
![]() |
![]() |