Re: Accessing a JNIEnv pointer from within a C++ jni function

2000-03-28 Thread Juergen Kreileder
> John Rousseau writes: John> On Tuesday Mar 28, 2000, Norman Shapiro wrote: >> The Java jni specifications require a JNIEnv* for almost all >> functions they provide. Furthermore it seems that if multiple >> Java threads can access the same function, each function call must

help with jdk1.2.2

2000-03-28 Thread Steve Ettorre
Hi- I just downloaded and installed jdk1.2.2 on RH6.1. When trying to run some sample code, I get the following message: Exception in thread "main" java.lang.NoClassDefFoundError: p1/Protection Here is what I have: jdk1.2.2 is installed in /usr/local. My path variable has /usr/local/jdk1.2

Re: Accessing a JNIEnv pointer from within a C++ jni function

2000-03-28 Thread Chris Kelly
IMHO, you have two options: either pass JNIEnv* to each level, or pass your C++ objects back to the top level, and use JNIEnv* on them there. The second option would avoid you having to make all your classes "JNI-aware". To avoid that with the first option, hide JNIEnv* in a struct or a class or a

Re: Accessing a JNIEnv pointer from within a C++ jni function

2000-03-28 Thread John Rousseau
On Tuesday Mar 28, 2000, Norman Shapiro wrote: > [EMAIL PROTECTED] (John Rousseau) writes: > >You could save the pointer in thread local storage, but I guarantee > >that it won't be portable. > > > >Take a look at pthread_key_create, pthread_setspecific, et al. > > > > Thanks much, that's exac

Re: Accessing a JNIEnv pointer from within a C++ jni function

2000-03-28 Thread John Rousseau
On Tuesday Mar 28, 2000, Norman Shapiro wrote: > The Java jni specifications require a JNIEnv* for almost all > functions they provide. Furthermore it seems that if multiple > Java threads can access the same function, each function call must > use the JNIEnv* from the current thread. > > Give

Accessing a JNIEnv pointer from within a C++ jni function

2000-03-28 Thread Norman Shapiro
The Java jni specifications require a JNIEnv* for almost all functions they provide. Furthermore it seems that if multiple Java threads can access the same function, each function call must use the JNIEnv* from the current thread. Given that function I am writing is maybe 20 deep in a call hiera

Re: C-like functionality in numeric output

2000-03-28 Thread Jacob Nikom
Thank you Cyntia, I have read this docs and found that it is easier to convert leading zeroes to spaces by myself. Regards, Jacob Nikom Cynthia Jeness wrote: > > Jacob, > > I also think that this should be part of standard Java; however, here is > a paragraph from the Javadoc supplied with J

Re: Plugin control panel crashes Netscape

2000-03-28 Thread Rachel Greenham
Adam Ambrose wrote: > > Rachel Greenham wrote: > > > Yes. That's the one I downloaded from netscape.com anyway, to my > > recollection, that didn't work with the libc5 Acrobat plugin either, but > > does with the newer presumably glibc one that's come out more recently. > > > > Is there an easy

Re: Plugin control panel crashes Netscape

2000-03-28 Thread Rachel Greenham
Juergen Kreileder wrote: > >> Do you use a glibc-2.x version of netscape? > > Rachel> Is there an easy way I can verify this? (I know there's a > Rachel> command to run on an executable to see what library > Rachel> dependencies it has, but I can't remember what it is.) > > ldd