File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Problem in applet when invoking jinvoke Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Problem in applet when invoking jinvoke" Watch "Problem in applet when invoking jinvoke" New topic
Author

Problem in applet when invoking jinvoke

Sulaiman Malik
Greenhorn

Joined: Apr 12, 2010
Posts: 25
Hi,

I have a little problem. i am using jinvoke library to call the user32.dll methods. I have developed an applet in netbeans which call the User32.dll methods using jinvoke it works fine in netbeans but when i run an applet in the browser (the html one) it shows the GUI but not invoking the methods. I think it cannot find the jinvoke library. So how to deploy the applet along with the jar file which is jinvoke.

thanks
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Any native code you're deploying must be in a signed jar file, and I think the applet code that calls it must also be in a signed jar.
Sulaiman Malik
Greenhorn

Joined: Apr 12, 2010
Posts: 25
can you please elaborate how to put an applet code into a signed jar. I have to do this.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Searching for "deploying native code applet" found http://www.jinvoke.com/Calling-native-code-with-Java-Applets-using-J-Invoke, which is apparently part of the documentation of the library you're using. In the future, please check the documentation first.
Sulaiman Malik
Greenhorn

Joined: Apr 12, 2010
Posts: 25
I have already gone through with this documentation. May be i am missing something i will try it again.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in applet when invoking jinvoke
 
Similar Threads
a VB Question
DdeIntialize
Accessing native code from signed applet
DDE Server
Invoking dll methods from Java