gaojinguan 发表于 2015-10-7 07:41:43

HP LoadRunner测试项目使用Dll文件

1. ClassPath 中设置 相应的Jar包文件
  2. 代码里读取Dll文件 在类的最上面添加:

static {
try {
System.load("C:/demoJava/demo.dll");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
  

  
  

  
页: [1]
查看完整版本: HP LoadRunner测试项目使用Dll文件