一般地,获取当前模块路径都是通过调用 GetModuleFileName() 来获取的. DWORD WINAPI GetModuleFileName( __in HMODULE hModule, __out LPTSTR lpFilename, __in DWORD nSize ); 参数 hModule A handle to the loaded module whose path is being requested. If this parameter is NULL, GetModu
package javaapplication1; import javax.swing.JOptionPane; /** * * @author Administrator */ public class JavaApplication1 { public static String mystr; public static String str; /** * @param args the command line arguments */ public static void main(S