Forum Discussion

chung1314's avatar
chung1314
New Contributor
13 years ago

ClassNotFoundException for classes in rt.jar

I have a Java class, say MyJava.java, and used this class in one (a runner) of my script-components. I am having all sorts of class loading issue. Some background. I am using loadUItest.bat, so the java launcher used is javafx. I have JavaFX 1.3 SDK installed as I see the JNLP file still refers to JavaFX 1.3.

I can see that MyJava.class is loaded at runtime by com.eviware.loadui.util.groovy.GroovyEnvironmentClassLoader, which has a parent class loader, BundleDelegatingClassLoader, which has its parent class loader as null (bootstrap class loader is the parent?). I would expect that the bootstrap class loader has loaded rt.jar, but apparently I don't know much about how loadui is started. Classes like sun.misc.Unsafe (used by a dependency jar by MyJava.java), org.w3c.dom.Node , javax.xml.binding.*, and all sorts of other classes that I usually expect to be in rt.jar are throwing ClassNotFoundException. Anyone can provide any insight?

Thanks,

-chung