[3792] in java-interest

home help back first fref pref prev next nref lref last post

Getting Native Methods to work with HotJava...

daemon@ATHENA.MIT.EDU (Brad Gaub)
Tue Nov 28 09:52:55 1995

Date: Tue, 28 Nov 95 12:54:21 UT
From: "Brad Gaub" <ZappoMan@msn.com>
To: "'Java Interest'" <java-interest@java.sun.com>

I'm having some trouble getting the Win95/NT Alpha3 version of HotJava to 
work with my Native Method DLL. It appears as if the call to LoadLibrary() is 
failing (gracefully and silently though). I can actually get the native 
method to work by running my debugger (VC++ 2.2) on the DLL while launching 
HotJava as the running EXE for the DLL (a debugger option). But when I run 
HotJava alone my native method calls don't work. I'm assuming since when run 
in the debugger, VC actually finds and loads the DLL, HotJava has no problem 
loading the DLL a second time. But when run independently, HotJava apparently 
has problems locating the DLL. I've tried placing the DLLs in the Windows & 
Windows\System directories, as well as the Java\Bin directory, but no luck.

Any suggestions?

-Brad

By the way, does anybody have an answer for why Netscape doesn't plan to 
support Native Methods in Navigator? I think they think it's a security 
issue... but it seems that their plug-ins or standard old helper apps would 
have the same security problems as a native method.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post