Results 1 to 2 of 2

Thread: Applets and dll

  1. #1
    peiceonly is offline Member
    Join Date
    Mar 2007
    Posts
    41
    Rep Power
    0

    Default 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

  2. #2
    goldhouse is offline Senior Member
    Join Date
    Mar 2007
    Posts
    134
    Rep Power
    0

    Default Use WebStart

    hi peiceonly
    you can use it ,
    Java 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

Similar Threads

  1. problem with applets..
    By sireesha in forum New To Java
    Replies: 3
    Last Post: 05-21-2009, 03:36 PM
  2. applets on mac what´s going on?
    By willemjav in forum Java Applets
    Replies: 6
    Last Post: 04-19-2008, 07:03 PM
  3. applets & threads
    By willemjav in forum Java Applets
    Replies: 2
    Last Post: 04-04-2008, 06:59 AM
  4. one more try, applets security
    By willemjav in forum Java Applets
    Replies: 0
    Last Post: 03-09-2008, 01:19 PM
  5. applets can´t be tricked
    By willemjav in forum Java Applets
    Replies: 0
    Last Post: 03-08-2008, 10:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •