Search the web
Sign In
New User? Sign Up
jnative-l · Java Native Interface (JNI)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 42 - 72 of 362   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
42
Thanks for the reponse Bill. It is interesting that when I run javah -jni on my java class file which contains: private native void init(int a[][]); I get a C...
Brandon Bell
brandon@...
Send Email
Apr 1, 1998
6:02 pm
43
... You have interpreted me correctly. Since I tend to avoid "javah", I didn't even think to try it to see what it produced. A big "Aha!" but not any real...
Bill Wilkinson
billw@...
Send Email
Apr 1, 1998
6:33 pm
44 Joseph Millar
joe@...
Send Email
Apr 1, 1998
6:36 pm
45
... And the trailing "_3_3I" is the mangled version of "[[I", which means that, even if this an overloaded method, this is the correct version of it, no? Maybe...
Bill Wilkinson
billw@...
Send Email
Apr 1, 1998
6:54 pm
46
My apologies gentlemen (esp. Joe for pointing to what should have been obvious)! My function is overloaded: public static native void init(int a[]); ...
Brandon Bell
brandon@...
Send Email
Apr 1, 1998
7:13 pm
47
... I can't account for this strange behavior, but you're right, the mangled name and the params don't match. On my system it works just like it should, using...
Joseph Millar
joe@...
Send Email
Apr 1, 1998
7:15 pm
49
Any ideas on the following dilemma? My Java application calls a native method. The native method goes into a loop (a X message pump to be exact)....
Mike Patterson
Mike.Patterson.mpatte...
Send Email
Apr 1, 1998
9:28 pm
50
Mike, When your java app calls your JNI code, can't you save a pointer to the JavaVM which your callback could access to attach to the current thread and get...
Brandon Bell
brandon@...
Send Email
Apr 1, 1998
9:41 pm
51
Thanks Brandon. You were right. Caching my JVM* in the initial thread allows me to get back to a JNIEnv* in my callback. Mike Patterson Software Engineer,...
Mike Patterson
Mike.Patterson.mpatte...
Send Email
Apr 2, 1998
3:08 pm
52
... [snip] There's also the function JNI_GetCreatedJavaVMs(), which will return a list of the JVM* pointers for the current class (to allow you to avoid...
Buzzy Brown
buzzy@...
Send Email
Apr 2, 1998
5:01 pm
53
Hi - I am attempting to create a shared object on AIX 4.2 for use with the JNI. I am using the following command: cc -I$JDKHOME/include -I$JDKHOME/include/aix...
Mickey, Sean
Sean.Mickey@...
Send Email
Apr 6, 1998
3:28 pm
54
Hello - I have a Java class named PriceRequest that I attempting to access as shown below (price_request is received as the 3rd parameter of the JNI call): ...
Mickey, Sean
Sean.Mickey@...
Send Email
Apr 6, 1998
3:46 pm
55
... If you're using IBM's XL C compiler, you may want to use the xlc_r command (or at the least, cc_r). Each of these commands uses the multi-threaded...
Buzzy Brown
buzzy@...
Send Email
Apr 6, 1998
6:15 pm
56
... The GetFieldID returns a field id not any sort of reference to a java object. To retrieve the value of the borrower field from an object use: jobject...
Buzzy Brown
buzzy@...
Send Email
Apr 6, 1998
6:15 pm
57
Buzzy - Thanks for the link, it was very helpful. Regarding the -bnoautoexp flag, I had also tried -bautoexp and -bexpall with no success. It would not work ...
Mickey, Sean
Sean.Mickey@...
Send Email
Apr 7, 1998
1:59 pm
58
Dear helpful people, I am facing a terribly novice problem, and I hope you don't mind me posting this, since I could not figure any way to solve it. I was...
Luciano Cerqueira Tor...
ltorres@...
Send Email
Apr 8, 1998
2:59 pm
59
Are you doing the below? If not, then try that JNI_GetDefaultJavaVMInitArgs(&vm_args); vm_args.version = 0x00010001; char *classpath = getenv("CLASSPATH"); if...
Jobalia, Meenal
Mjobalia@...
Send Email
Apr 8, 1998
3:08 pm
60
... I have tried the following classpth = malloc(sizeof(char)*90); strcat(classpth, getenv("CLASSPATH")); strcat(classpth, ":/local/ltorres/"); fprintf(stderr,...
Luciano Cerqueira Tor...
ltorres@...
Send Email
Apr 8, 1998
4:37 pm
61
Dear people, After one day struggling with the problem, I have found the solution, which I think is so strange that it must be another simpler one. The problem...
Luciano Cerqueira Tor...
ltorres@...
Send Email
Apr 8, 1998
8:24 pm
62
Is there any way to access a StringBuffer from JNI? I can't see any way to get at the underlying char[] of a StringBuffer....
Jonathan Edwards
edwards@...
Send Email
Apr 9, 1998
3:23 pm
63
Excerpts from jnative-l: 9-Apr-98 [JNATIVE-L] StringBuffer Jonathan Edwards@intrane (123) ... Just push the 'getChars' button on the StringBuffer object, and...
Blair Wyman
wyman@...
Send Email
Apr 9, 1998
5:11 pm
64
... Thanks, but what I meant was direct read/write access to the StringBuffer without the need to make copies, which after all is the whole point of a...
Jonathan Edwards
edwards@...
Send Email
Apr 9, 1998
5:43 pm
65
Hi - The JNI info on Javasoft's site says that failing to call ReleaseStringUTFChars() after a GetStringUTFChars() will always result in a memory leak....
Mickey, Sean
Sean.Mickey@...
Send Email
Apr 9, 1998
7:59 pm
66
Excerpts from jnative-l: 9-Apr-98 Re: [JNATIVE-L] StringBuffer Jonathan Edwards@intrane (797*) ... Ahh, I see your motivation, and agree that JNI doesn't have...
Blair Wyman
wyman@...
Send Email
Apr 9, 1998
8:02 pm
67
fyi...
Sean C Sullivan
sullis@...
Send Email
Apr 10, 1998
6:18 pm
68
A similar, more elaborate approach is part of ILU. A little java program interprets a description and generates the C header files. This program is not...
jacobi.PARC@...
Send Email
Apr 10, 1998
6:54 pm
69
... I'd recommend always using the release call. The Sun tutorial always calls the release function. I think the exact behavior of whether this is safe or...
Buzzy Brown
buzzy@...
Send Email
Apr 10, 1998
7:15 pm
70
Hello people, My question is: I have a C++ program that invokes the Java VM and instantiates a few objects that communicate with other Java remote objects ...
Luciano Cerqueira Tor...
ltorres@...
Send Email
Apr 14, 1998
9:02 pm
71
I am trying to build a JNI shared library with object files that use STL templates (eg. string and vector). The compiles are clean. However, when I try to...
Ken Dougan
kdougan@...
Send Email
Apr 16, 1998
7:26 pm
72
... Thank you. Meenal Jobalia Visual Networks...
Jobalia, Meenal
Mjobalia@...
Send Email
Apr 24, 1998
9:55 pm
Messages 42 - 72 of 362   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help