Thread: Applets and dll
View Single Post
  #2 (permalink)  
Old 04-01-2007, 11:16 AM
goldhouse goldhouse is offline
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
Use WebStart
hi peiceonly
you can use it ,
Code:
Download the dll to user.home or user.dir and then load it from there. private static boolean DllLoaded = false; public MyClass() { if (!DllLoaded) { String dll = DLL_DIR + System.getProperty("file.separator") + DLL_NAME; System.out.println("Installing " + dll); System.load(dll); System.out.println("Library installed."); DllLoaded = true; } } public static final String DLL_DIR = System.getProperty("user.home");
I would suggest you to use web start instead

thanks
goldhouse
Reply With Quote