Results 1 to 2 of 2
Thread: Applets and dll
- 04-01-2007, 10:04 AM #1
Member
- Join Date
- Mar 2007
- Posts
- 41
- Rep Power
- 0
Applets and dll
Hi all
This is my issues.
I have a C program to calculate the heart beat rate of a patient(PC is connected to a device with the USB port). My aim is to plot it in a web page I'm planning to use the Applets for it.
Everthing worked fine ,the applet was working fine as standalone application from the netbeans but once deployed in the browser it is showing some errors Like "has no access" it is true that we are violating the security constraints if a browser can use our libraries .
what s the solution ?
thanks
peiceonly
- 04-01-2007, 10:16 AM #2
Senior Member
- Join Date
- Mar 2007
- Posts
- 134
- Rep Power
- 0
Use WebStart
hi peiceonly
you can use it ,
I would suggest you to use web start insteadJava 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");
thanks
goldhouse
Similar Threads
-
problem with applets..
By sireesha in forum New To JavaReplies: 3Last Post: 05-21-2009, 03:36 PM -
applets on mac what´s going on?
By willemjav in forum Java AppletsReplies: 6Last Post: 04-19-2008, 07:03 PM -
applets & threads
By willemjav in forum Java AppletsReplies: 2Last Post: 04-04-2008, 06:59 AM -
one more try, applets security
By willemjav in forum Java AppletsReplies: 0Last Post: 03-09-2008, 01:19 PM -
applets can´t be tricked
By willemjav in forum Java AppletsReplies: 0Last Post: 03-08-2008, 10:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks