InputStream fi = resource.openStream();本行报错
代码内容
String filename = "autoRPA.zip";
URL resource = AutoDeviceFootinitContextAction.class.getResource(filename);
outputWindow.println(getName(),
" copyAutoRPA autoRPA.zip to D:\autoRPA\autoRPA.zip");
//get fileInpotStream
InputStream fi = resource.openStream();
//copy file
Files.copy(fi, Paths.get(file_Path+"\autoRPA.zip"), StandardCopyOption.REPLACE_EXISTING);
//unzip
DG111Decompression.unzip(new File(file_Path+"\autoRPA.zip"),file_Path, outputWindow);
报错信息:
JAR entry com/xndk/plugin/plugin/action/autoRPA.zip not found in E:\Capital15\plugins\GWMDG\GWMDG111.jar