for the process i write this code, and its work (exe):
//return String of all process public static String showProcess() throws Exception { String line = null, xprocess = null; Runtime runtime = Runtime.getRuntime(); Process cmd = runtime.exec("tasklist.exe"); BufferedReader in = new BufferedReader(new InputStreamReader(cmd.getInputStream())); while ((line = in.readLine()) != null) { if(line.contains("exe")) { xprocess += line.substring(0, line.lastIndexOf(".")) + "\n"; } } in.close(); return xprocess; }
but now i want all dll that load , how do i do it in java ?
i search on internet, but nothing... just how to try load dll in myself with System.loadLibrary("mydll");