怎么用微软的WFC类包?请高手指点
我在jb6下建一个class如下:
import com.ms.wfc.app.Registry;
import com.ms.wfc.app.RegistryKey;
import java.io.PrintStream;
public class TestReg {
public static void main(String[] args) {
// RegistryKey objRegistrySubKey = null;
// RegistryKey objRegistryRootKey = null;
// objRegistryRootKey = Registry.CLASSES_ROOT;
// objRegistrySubKey = objRegistryRootKey.getSubKey(".doc", false);
RegistryKey objRegistryKey =
Registry.CURRENT_USER;
objRegistryKey.getSubKeyNames();
}
}
编辑可以通过,但运行时出现了错误如下
java.lang.UnsatisfiedLinkError: RegQueryInfoKey
at com.ms.wfc.app.RegistryKey.RegQueryInfoKey(Native Method)
at com.ms.wfc.app.RegistryKey.getSubKeyCount(RegistryKey.java)
at com.ms.wfc.app.RegistryKey.getSubKeyNames(RegistryKey.java)
at TestReg.main(TestReg.java:13)
Exception in thread "main"
请问这是怎么回事?该怎么解决?我怀疑是不是我的WFC包有问题,但同样的程序如果放到服务器端,用applet来实现就没问题。