Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2007, 11:04 AM
Member
 
Join Date: Mar 2007
Posts: 41
Rep Power: 0
peiceonly is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-01-2007, 11:16 AM
Senior Member
 
Join Date: Mar 2007
Posts: 135
Rep Power: 0
goldhouse is on a distinguished road
Default 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
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with applets.. sireesha New To Java 3 05-21-2009 04:36 PM
applets on mac what´s going on? willemjav Java Applets 6 04-19-2008 08:03 PM
applets & threads willemjav Java Applets 2 04-04-2008 07:59 AM
one more try, applets security willemjav Java Applets 0 03-09-2008 02:19 PM
applets can´t be tricked willemjav Java Applets 0 03-08-2008 11:10 PM


All times are GMT +2. The time now is 10:27 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org