Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP: register_<classname> function

1 view
Skip to first unread message

Chris Hoffmann

unread,
Dec 10, 1996, 3:00:00 AM12/10/96
to

The stub files that Netscape's Javah program generate say that you
should call the 'register_<classname>' function. Yet so far as I can
tell, the example programs only call the 'use_<classname>'
function. What's up here? If my plugin doesn't call it, who does?

As you may have guessed, in my plugin the debugger shows that NO ONE
ever calls that function. In fact, even if I call it myself instead of
'use_<classname>' it has no effect. Although it appears that this is
the function that registers my native method implementations with the
Javascript run-time environment, none of my native methods can be
called from Javascript. All I get is an
UnsatisfiedLinkException. Non-native methods work fine, so the
'<classname>.class' file seems to be OK.

How is the run-time supposed to find out about my native methods? Why
would the call to JRI_RegisterNatives not work?


Thanks,
Chris
--
Chris Hoffmann DataViews Corporation
chof...@dvcorp.com 47 Pleasant St. Northampton MA 01060
GCS d H s+: g+ ?p a w v+ C+$ US+ P++(++++) L E+(+++) N++ K W--->-- M+
V- po- Y+ t+ 5+(+++) Jx R G tv b+++ D+ B-() e+++ u++ h---- f r+++ n--- y++++

Trebor A. Rude

unread,
Dec 13, 1996, 3:00:00 AM12/13/96
to

On 10 Dec 1996 13:40:57 -0500, chof...@dvcorp.com (Chris Hoffmann)
wrote:

In case you don't know, this message doesn't really belong in this in
this newsgroup. This newsgroup is for discussion of JavaScript, not
Java (despite the similiarity in names, they ARE different languages).
Try posting this to comp.lang.java.misc or comp.lang.java.programmer
and you'll probably have better luck.

--
<*> Trebor A. Rude <*>
<*> tre...@mnsinc.com <*>

0 new messages