Re: Linux JVM: JNI allow putmsg() syscalls in native code?

2002-04-25 Thread Vladimir G. Ivanovic
Q> To: Quan, William [NGC:B866:EXCH] WQ> Cc: '[EMAIL PROTECTED]' WQ> Subject: Re: Linux JVM: JNI allow putmsg() syscalls in native code? WQ> William Quan <[EMAIL PROTECTED]> writes: >> Q1.) Why is the JVM eclipsing my getmsg() and putmsg() syscalls with &

RE: Linux JVM: JNI allow putmsg() syscalls in native code?

2002-04-25 Thread William Quan
Title: RE: Linux JVM: JNI allow putmsg() syscalls in native code? The LD_PRELOAD is working out after all. I set this *inside* of my '.java_wrapper' instead of on the command line. This prevents the process from hanging like before. LD_DEBUG=symbols,binding reveals the

Re: Linux JVM: JNI allow putmsg() syscalls in native code?

2002-04-25 Thread Juergen Kreileder
William Quan <[EMAIL PROTECTED]> writes: > However, when I attempt to do the command: > 'LD_PRELOAD=/usr/lib/libLiS.so ... java' The process hangs(long > pause and no sign of completion in sight)- so i kill the process. > Q3.)Any ideas as to what might be the cause for this hangup using > LD_PRE

RE: Linux JVM: JNI allow putmsg() syscalls in native code?

2002-04-25 Thread William Quan
Title: RE: Linux JVM: JNI allow putmsg() syscalls in native code? Juergen, Thanks for your help. The LD_DEBUG shows the following:     31212:  symbol=putpmsg;  lookup in file=/lib/libc.so.6     31212:  binding file /home/imslab/jets1000dev/dlpi/libdlpi.so to /lib/libc.so.6: symbol

Re: Linux JVM: JNI allow putmsg() syscalls in native code?

2002-04-25 Thread Juergen Kreileder
William Quan <[EMAIL PROTECTED]> writes: > Q1.) Why is the JVM eclipsing my getmsg() and putmsg() syscalls with > this from libc? This not Java specific, you'll get the same problem when dlopening a library which is linked against libLiS.so. The first getmsg which gets found is from libc. If yo

Linux JVM: JNI allow putmsg() syscalls in native code?

2002-04-25 Thread William Quan
Title: Linux JVM: JNI allow putmsg() syscalls in native code? GIVEN: -- I am working on a Java Network Application that can send/receive raw Ethernet packets. I bypass the TCP/IP stack and pass them to a DLPI provider. Currently, I am attempting to use LiS-2.12 (a.k.a LINUX STREAMS: http

Re: JNI native code throws unexpected exception

2001-06-18 Thread Markus Suing
tees about whether certain C++ language features, like C++ exceptions and RTTI, are valid in the context of native code. These C++ language features typically require all modules in the system to be compiled with the features enabled, and typically require run-time support. In this case there is l

JNI native code throws unexpected exception

2001-06-18 Thread IIS - Paul Morie locked 02/06/01
Hello all- I am working on an application that uses the JNI to talk between native code written in C++ and Java. When native code called through the JNI throws an exception, the stack will be unwound past a valid catch statement, resulting in a call to __default_terminate() and finally

ANNOUNCEMENT: A Native-Code JDK1.2 Profiler

1999-09-04 Thread Nathan Meyers
ANNOUNCEMENT This is to announce the availability of Profiler, a JDK1.2 profiler that reports how much time is being spent in native code. Under the covers, Java is always running native code: the JVM, native libraries, JIT-compiled code. Profiler allows you to see where the time is really

Re: Debugging Native code on Linux II

1999-07-28 Thread Matt Welsh
is meant to be compiled with the -g option. As I suggested before, you can insert a dummy native method in your code which traps the debugger. Calling this method forces the native code to be loaded, returns you to the gdb prompt, and voila! You can set breakpoints. You can also use the gdb &#

Debugging Native code on Linux II

1999-07-28 Thread Christian Cryder
x27;s JDK for Linux, if that matters) This causes the GNU debugger to start, and places me at the command line. Now...I think I'm very close. I want to set a break point in native code. The problem is, the native code hasn't been loaded yet because we haven't run the Java class wh

Re: Debugging Native code on Linux

1999-07-28 Thread Juergen Kreileder
> Matt Welsh writes: Matt> Under Linux, try using gdb and running the 'debug' version Matt> of the JVM (e.g., 'java_g' rather than 'java'). Matt> My .gdbinit has the following: Matt> set env THREADS_TYPE=green_threads Matt> set env JAVA_HOME /home/cs/mdw/src/java/dow

Re: Debugging Native code on Linux

1999-07-28 Thread Matt Welsh
v3/bin/i686/green_threads/java_g This should allow you to say, e.g., (gdb) run MyClass You can also set breakpoints and so forth in your native code, probably by specifying source lines or function names before you run the JVM. Otherwise you could have a native method which has one

Debugging Native code on Linux

1999-07-28 Thread Christian Cryder
ode works fine when I run it normally (ie. outside jdb). Suggestions? I feel like I'm really close and its bugging me :-) Oh to see into that little black box of native code... Christian Christian Cryder Software Engineer - UHR Infrastructure

Re: native code Java application.

1999-04-13 Thread Paul Ho
At 12:50 PM +0100 04/13/99, Urs Wagner wrote: >Sorry > >I mean native code Java application. try the gcj thing form cygnus. http://sourceware.cygnus.com/java/ It's a Java front end to egcs. >Wait I'm confused. Isn't JFC just Swing? Why isn't that "native Ja

RE: native code Java application.

1999-04-13 Thread Villanueva, Edgar
The only solution that I found the is plausable today is to use ibms native code compiler. You have to purchase visualage for java enterprise edition. I was using it under the beta versions of it with swing 1.1. It works very well and it speeds up swing significantly. Edgar Villanueva PCS

native code Java application.

1999-04-13 Thread Urs Wagner
Sorry I mean native code Java application. Wait I'm confused. Isn't JFC just Swing? Why isn't that "native Java"? Thanks in advanced, -Riyad -Original Message- From: Urs Wagner <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: NATIVE CODE

1999-03-08 Thread pridemor
Look in $(JDK_HOME)/include/genunix/ [EMAIL PROTECTED] on 03/06/99 07:46:01 AM To: [EMAIL PROTECTED] cc:(bcc: Russell Pridemore/Lex/Lexmark) Subject: NATIVE CODE Dear sir, I use linux OS. I want to include a "C" function for writing into sound card in a real-time a

NATIVE CODE

1999-03-06 Thread Dinesh D
Dear sir, I use linux OS. I want to include a "C" function for writing into sound card in a real-time application using the "JNI". I wrote the "C" function and created the corresponding header files. When I try to compile the "C" file, it gives an error message saying that the header file "jn

(possible bug) "Invalid argument" in native code

1999-01-09 Thread Peter Schuller
Hi! The following problem exists in both JDK 1.1.6v5, and 1.1.7v1a. I've got a glibc systems, and using the glibc versions of the JDK. My kernel is 2.0.34. I'm pretty sure this is Linux specific, but I haven't been able to verify that by trying it on another OS. But here goes. Under certain cir

JDK problem with findClass in native code - NOT

1998-09-16 Thread Bernd Kreimeier
Bernd Kreimeier writes: > JDK seems to fail me. The very same classpath > that works to load the main Java class (import/javac) > does not work when I call env->FindClass in the > native code. Mistake on my account. I ended up trying "somepackage.SomeClass"

Re: JDK problem with findClass in native code

1998-09-01 Thread Kevin B. Hendricks
Please submit a full bug report to the http://www.blackdown.org/java-linux.html jitterbug Bug Database including the simplest sample code that shows the problem (both java and c) and we (the porters) would be happy to look into it for you. The simpler the code the better. By the way, I am not su

Re: JDK problem with findClass in native code

1998-09-01 Thread Dan Kegel
Bernd Kreimeier wrote: > ... The very same classpath > that works to load the main Java class (import/javac) > does not work when I call env->FindClass in the > native code. The same source works with Japhar > (unfortunately, Japhar has other problems). > > The error appe

Re: JDK problem with findClass in native code

1998-09-01 Thread Dan Kegel
classes used only in native code. > > Again, JDK seems to fail me. The very same classpath > that works to load the main Java class (import/javac) > does not work when I call env->FindClass in the > native code. The same source works with Japhar > (unfortunately, Japhar has othe

JDK problem with findClass in native code

1998-09-01 Thread Bernd Kreimeier
Invocation API, I now use the JNIEnv* provided by JNI in Main() and use that environment to let my native code set up various other stuff. E.g. a native "init()" loads a couple of other classes used only in native code. Again, JDK seems to fail me. The very same classpath that works to loa

JNI Native Code Problem

1998-07-18 Thread Takeru Tamayama
hi, I'm Takeru Tamayama , keio univ in Japan. I looked www.blackdown.org "Compiling Library Code for JNI". I did the same way writing there, but my program don't work. error message is following. I want some hints. # message SIGSEGV11* segmentation violation stachbase=0xb820, s