Troubleshooting
Problem
It may seem convenient to take advantage of the Java extension mechanism architecture by using the java.ext.dirs property to point to directories, rather than using classpath, which requires explicitly naming each jar file. However, the java.ext.dirs property is meant for a very specific purpose, not as a general class-loading mechanism, and using it will cause errors with the Java Pack stages at runtime.
Symptom
If the $DSHOME/java/lib directory is included in java.ext.dirs, the following error will be observed:
java.lang.IllegalAccessError: com/ascentialsoftware/jds/Stage.setup(Ljava/lang/Object;)
If $DSHOME/java/lib is not included, but instead java.ext.dirs is used to point to the directory containing the class or jar file which contains the Java implementation for the stage, the following exception will be thrown:
java.lang.NoClassDefFoundError: com.ascentialsoftware.jds.Stage
These errors will occur even if the classpath setting is correct.
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
25 April 2025
UID
swg21660582