@@ -0,0 +1,1228 @@
+package me.robertyang.codeic.dllloader;%0A%0Aimport java.io.File;%0Aimport java.io.FileOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0Aimport me.robertyang.codeic.test.Test3;%0A%0Apublic class DllLoader %7B%0A%09static String path = new Test3().getClass().getResource(%22/%22).getFile().toString();%0A%09enum FileName%0A%09%7B%0A%09%09//test(%22test.dll%22);%0A%09%09;%0A%09%09String fileName = %22%22;%0A%09%09String resourcePath = %22%22;%0A%09%09public String getFileName()%0A%09%09%7B%0A%09%09%09return fileName;%0A%09%09%7D%0A%09%09public String getResourcePath()%0A%09%09%7B%0A%09%09%09return resourcePath;%0A%09%09%7D%0A%09%09private FileName(String fileName,String resourcePath)%0A%09%09%7B%0A%09%09%09this.fileName = fileName;%0A%09%09%09this.resourcePath = resourcePath;%0A%09%09%7D%0A%09%7D%0A%09public static void load()%0A%09%7B%0A%09%09%0A%09%7D%0A%09%0A%09static void moveFiles() throws IOException%0A%09%7B%0A%09%09for (FileName fileName : FileName.values()) %7B%0A%09%09%09InputStream inputStream = new DllLoader().getClass().getResourceAsStream(fileName.getResourcePath());%0A%09%09%09String filePath = path + fileName.getFileName();%0A%09%09%09filePath = filePath.substring(1, filePath.length());//TODO%0A%09%09%09byte%5B%5D data = new byte%5BinputStream.available()%5D;%0A%09%09%09inputStream.read(data);%0A%09%09%09FileOutputStream fileOutputStream = new FileOutputStream(filePath);%0A%09%09%09fileOutputStream.write(data);%0A%09%09%09fileOutputStream.close();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add dllLoader