If you are using the default JVM and are running Creo Object TOOLKIT Java applications on your machine, you need to add only your application classes to the classpath. The mechanisms to accomplish
this are:
|
• |
Setting the environment variable CLASSPATH. |
|
• |
Using the java_app_classpath field in the registry file. This field has a character limit of 2047 wide characters (wchar_t). |
|
• |
Loading a user-specified Jar file through the user interface (only available for a model program). |
Creo application will automatically add the Creo Object TOOLKIT Java archive otk.jar to the CLASSPATH.
To compile Creo Object TOOLKIT Java applications, the environment variable CLASSPATH must include the path to the locations of classes and archives that you intend to use. Also, you must add Creo Object TOOLKIT Java archive otk.jar to the CLASSPATH. This archive is located at <creo_loadpoint>\<version>\Common Files\text\java\otk.jar.