How to make an applet works with JNI?
Posted on 1998-02-11
I have an simple applet that construct a class that developed with C++. This class (C++) only print some message to screen using printf command.
Next, I compile the applet and produce *.class file.
I use javah utility to make header file.
Using Visual C++ v5.0, I create a *.dll file.
I store this file in same directory with *.class file.
Next, I make a jar file from this *.class to make it signed
I sign the jar file using javakey command
I test on appletviewer and it is working properly
Next I try using Hotjava 1.1 and see the result in HotJava Console. It is not working!
The exception thrown is:
I have read the documentation on package index of JDK and this exception was produced because it can not find the *.dll file, but I store the file in the same directory with my *.jar file. I have tried to include this *.dll on my *.jar file but it still doesn't work.
I will be glad to hear your opinion and solution.
Thank you for your attention.
PT. Sigma Cipta Caraka
Jakarta - Indonesia