public void Test {
String location = xyz; //location of the class file for the stub
ActivationDesc desc = new ActivationDesc( "TestObjectImpl", location, null);
ActivationID id = ActivationGroup.getSystem().registerObject(desc);
TestObject to = (TestObject)id.activate(true);
}
在运行上面的代码时,我得到了TestObjectImpl_stub的ClassNotFoundException。我环顾网络,发现了两种可能的解决方法:
以上哪种方法更合适?对此有更好的解决方案吗?