j-Interop: Open Source, DCOM Access without JNI.

2006-09-06 Thread vikramrc
For anyone interested: j-Interop implements DCOM wire protocol (MSRPC) to enable development of Pure Bi-Directional, Non-Native Java applications which can interoperate with any COM component.The implementation itself is purely in Java and does not use JNI to provide native access,thus being

Re: JNI problems

2005-04-10 Thread Al Niessner
Thank you for the help. Using LD_PRELOAD, I was able to change the error quite a bit. Now it fails after starting the JVM because the current stack is corrupt. I am not sure if this is an improvement or not, but it does mean I should be able to try various JVMs. Unfortunately, I have been building

Re: JNI problems

2005-04-08 Thread Juergen Kreileder
Al Niessner <[EMAIL PROTECTED]> writes: > Since it works with a C++ main(), I am guessing that there is some > symbol in Octave that is clashing with what libzip.so Probably, AFAIK Sun internalizes symbols in the i386 build but not in the x86-64 and ia64 builds. Our 1.4.2-01 for x86-64 should be

JNI problems

2005-04-08 Thread Al Niessner
I am looking for help on how to continue tracking this problem to its source. A solution would be nice, but it is not expected. I am using jdk1.5.0_01-x86_64 and have created a C++ library that creates an embedded JVM. I want to use a bunch of Java that I have written from within Octave (see www.

Re: Using JNI to run root-priviledged tasks

2004-06-21 Thread nmeyers
On Mon, Jun 21, 2004 at 11:46:39AM +0530, John Varghese wrote: > Hello all > I am using Linux 7.2 and j2sdk1.4.1 > > I would like to use JNI to perform some root-priviledged tasks > say like adding users to system, restarting some daemons, Hello John, What exactly are y

Using JNI to run root-priviledged tasks

2004-06-20 Thread John Varghese
Hello all I am using Linux 7.2 and j2sdk1.4.1 I would like to use JNI to perform some root-priviledged tasks say like adding users to system, restarting some daemons, Can anyone pls suggest how this can be done Regards John

Réf. : Re: Java and JNI in Linux

2004-03-18 Thread BRUGAT Didier
Thank for your response, but i found the solution : all is ok with the jdk1.4.2_04 instead of jdk1.4.1 !!! Dirk Weigenand <[EMAIL PROTECTED]> 18/03/2004 15:32                 Pour :        BRUGAT Didier <[EMAIL PROTECTED]>         cc :                 Objet :        Re: Jav

Java and JNI in Linux

2004-03-18 Thread BRUGAT Didier
Hello Linux world ! I have a problem when i try to load a shared library in my java program. My config is :         Linux 64 bits         jdk1.4.1         compilers 64 bits : ecc (C language) and efc (Fortran) When i build an application with this dynamic library, all is OK. But when i launch my j

Re: JNI Multithread Question in Linux

2004-01-07 Thread Neal Sanche
On January 7, 2004 10:37 pm, Paul Mclachlan wrote: > Kok Choon Kiat wrote: > > It appears to me that the native thread has *seized the entire > > flow of control* from java program and it is not running > > independently. Why is that so? How can I make the native thread > > independent and not seiz

Re: JNI Multithread Question in Linux

2004-01-07 Thread Paul Mclachlan
Kok Choon Kiat wrote: It appears to me that the native thread has *seized the entire flow of control* from java program and it is not running independently. Why is that so? How can I make the native thread independent and not seize the flow of control from the java program? I would really appre

JNI Multithread Question in Linux

2004-01-07 Thread Kok Choon Kiat
Dear friends,   I have successfully integrated native (C++) codes which employ threading operation with a simple java program. The objective of the program is to spawn thread (using POSIX pthread_create) that prints 10 “Hello World” in approx. 10 seconds.   My Software environment

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

2002-04-25 Thread Vladimir G. Ivanovic
linked against WQ> libLiS.so ?? WQ> This sounds like I need to rebuild the java executable? Am I understanding WQ> you correctly? WQ> -Original Message- WQ> From: Juergen Kreileder [mailto:[EMAIL PROTECTED]] WQ> Sent: Thursday, April 25, 2002 4:37 PM W

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
j2sdk1.3.1/src.zip contains the source code for building launchers: java.c, java.h, java_md.c, java_md.h alternatively you can use the Invocation API directly: http://java.sun.com/j2se/1.3/docs/guide/jni/jni-12.html#invo http://java.sun.com/j2se/1.3/docs/guide/jni/spec/invocation.doc.html (Note y

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

jni related

2002-02-06 Thread Amol Kulkarni
java.lang.ref.Reference$Lock@41EEA3C0/41F1FB20: Waiting to be notified: "Reference Handler" (0x80f89b8) Registered Monitor Dump: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock

Re: setting break point in JNI code...

2001-10-19 Thread Nathan Meyers
If you want to debug JNI code, you need to run a native debugger like gdb, not a Java debugger. It would be nice if a single debugger could handle both, but no debugger (that I know of) can do that. It's a bit tricky to set up. Here's a document from IBM that talks about how to do i

setting break point in JNI code...

2001-10-19 Thread SRINIVASA GURUSU
Hi , i am new to JNI. I am trying to set the break point in JNI code using jdb...( REdhat Linux7.1 + blackdown jdk1.3.1) i follwed the below proceduredures 1. setting environment for export LD_PRELOAD=libHelloWorld.so export DEBUG_PROG=jdb then i tryed to run my program using

Re: Unix JNI library?

2001-10-06 Thread David Brownell
> > Does anyone have a JNI library for accessing & modifying files > > on a Unix FS? Specifically Linux? I'd like to be able to > > query & modify group & owner permissions. Closest I've seen (haven't looked lately at exact contents): http:

Re: Unix JNI library?

2001-10-05 Thread Weiqi Gao
On Fri, 2001-10-05 at 16:19, Timothy Reaves wrote: > > Does anyone have a JNI library for accessing & modifying files > on a Unix FS? Specifically Linux? I'd like to be able to > query & modify group & owner permissions. I don't have a JNI library for do

Unix JNI library?

2001-10-05 Thread Timothy Reaves
Does anyone have a JNI library for access & modifing files on a unix FS? Specifically linux? I'd like to be able to query & modify group & owner permissions. Thanks! -- To UNSUBSCRIBE

Re: JNI and initialization of static C++ classes on Linux with JDK 1.3.1

2001-09-16 Thread Marcel Ruff
s the char* acts as expected! Why? Why is there no entry in libInitTest.so? thanks again for any help, Marcel PS: I will send this question to the gcc mailing list as well probably they know. > > Matthias > > > Marcel Ruff wrote: > >>Hi, >> >>i am usi

Re: JNI and initialization of static C++ classes on Linux with JDK 1.3.1

2001-09-16 Thread Matthias Pfisterer
Hi, a funktion void _init(void) is called on loading a shared library, if it exists. See dlopen(3). Matthias Marcel Ruff wrote: > > Hi, > > i am using Linux 2.4.4-4 with JDK 1.3.1 > > I want to call one method in a native, shared C++ library from > Java, using JNI.

JNI and initialization of static C++ classes on Linux with JDK 1.3.1

2001-09-15 Thread Marcel Ruff
Hi, i am using Linux 2.4.4-4 with JDK 1.3.1 I want to call one method in a native, shared C++ library from Java, using JNI. The C++ .so lib depends on other .so libs which have many C++ classes which are usually initialized automatically on startup before the main() method (if i invoke the old

compling JNI

2001-09-05 Thread soonho
Hi,   From java tutorial, JNI compiled by   cl -I<where jni.h is> -MT invoke.c -link <where javai.lib is>\javai.lib   I currently installed VC98 and jdk1.3, but I don't know where to find out javai.lib   Thank you soonho

JNI and i386

2001-06-28 Thread Valerio Ferrucci
Hi, I installed the jdk and jre 1.3.0 on a i386 (RedHat 7.0). The installation seems to be ok, I tried the "Hello" class example and all seems ok. I have some problem loading the JVM in my C app (jni). When I call dlopen on libjvm.so (in classic) I get an error: undefi

JNI and J2SE Runtime v1.3.1 for Linux/ARM Release Candidate

2001-06-23 Thread Laurent Farrugia
Hello, We are trying to use JNI with the new J2SE runtime on an Ipaq with Familiar 0.4. We run various JNI examples like http://www.blackdown.org/java-linux/docs/faq/examples/jni-in-C/. They all return a segmentation Violation. Does someone try to run JNI with Familiar 0.4 and J2SE V 1.3.1 RC 1

Re: JNI and J2SE Runtime v1.3.1 for Linux/ARM Release Candidate

2001-06-23 Thread Juergen Kreileder
On Tue, 12 Jun 2001, Laurent Farrugia wrote: > We are trying to use JNI with the new J2SE runtime on an Ipaq with > Familiar 0.4. We run various JNI examples like > http://www.blackdown.org/java-linux/docs/faq/examples/jni-in-C/. > They all return a segmentation Violation. Does so

Re: JNI native code throws unexpected exception

2001-06-18 Thread Markus Suing
Hi Paul, I had a similar problem. This is a known bug from sun' bug databse (no 4389172). Besides suns says that it is not a bug. quote from the bug database entry : "... Evaluation The JNI specification makes no guaran

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

JNI exception bug

2001-06-08 Thread Markus Suing
Hi, I'm using the jni with blackdown jdk1.3 ("Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)") and gcc2.95.2 to compile my c++-libs. Now I encountered the bug giving the error message : "An unexpected exception has been detected in native code outside the VM" Th

Re: Signals, JNI and sigtimedwait()...

2001-05-30 Thread Peter Pilgrim
add EventObject to the collection. You can do this through JNI and therefore thru sigtimedwait(). When you add the new event call proceed(). The dispatch thread T wakes up remove the next event from the queue() and calls the Java listener. Hope this makes sense. -- Peter Pilgrim "Putting P

Re: jni link error

2001-05-29 Thread David Brownell
> I'm not sure, but I don't think the JVM uses ld to load its stuff. If the JVM uses anything other than the standard dlsym() I think it'd really be asking for trouble ... why would it want to do that, anyway? -- To UNSUBSCRI

Re: jni link error

2001-05-29 Thread Christopher Smith
--On Tuesday, May 29, 2001 17:21:41 -0500 Joi Ellis <[EMAIL PROTECTED]> wrote: > On Tue, 29 May 2001, Christopher Smith wrote: > >> >> Can anyone explain to me why having the file in the path set in >> ld.so.conf shouldn't be enough? > > Heh. Try getting the security nazis to agree to THAT for a

Re: jni link error

2001-05-29 Thread Joi Ellis
On Tue, 29 May 2001, Christopher Smith wrote: > > Can anyone explain to me why having the file in the path set in ld.so.conf > shouldn't be enough? Heh. Try getting the security nazis to agree to THAT for a user application. I'm not sure, but I don't think the JVM uses ld to load its stuff.

Signals, JNI and sigtimedwait()...

2001-05-29 Thread Christopher Smith
Okay, I'm writing some JNI code for some stuff using RT signals. I need to do some sigtimedwaits, which then post as IO events to the JVM. My original design was to have Java threads invoke something like waitForIO(), which was a native method which did the sigtimedwait(). Unfortunately,

Re: jni link error

2001-05-29 Thread Christopher Smith
--On Tuesday, May 15, 2001 09:34:50 -0700 Nathan Meyers <[EMAIL PROTECTED]> wrote: > Zhihong Pan wrote: > >> I need jni in my java application. I created a shared library, and set >> my library path (export LD_LIBRARY=/home/mydir/), but I still ge

Re: jni link error

2001-05-15 Thread Nathan Meyers
Zhihong Pan wrote: > I need jni in my java application. I created a shared library, and set my library >path (export LD_LIBRARY=/home/mydir/), but I still get the following error >message:java.lang.UnsatisfiedLinkError: no java_gsapi in java.library.path. Could >anybody help me

jni link error

2001-05-15 Thread Zhihong Pan
I need jni in my java application. I created a shared library, and set my library path (export LD_LIBRARY=/home/mydir/), but I still get the following error message:java.lang.UnsatisfiedLinkError: no java_gsapi in java.library.path. Could anybody help me ? Thanks in advance, Zhihong Pan

Re: JNI for linux

2001-04-10 Thread Weiqi Gao
On 09 Apr 2001 23:03:11 -0500, Weiqi Gao wrote: > > Try > javac -Djava.library.path=. JavaCallC Of course, it should have been "java -Djava.library.path=. JavaCallC". -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email

Fw: JNI for linux

2001-04-10 Thread Chao Liu
- Original Message - From: Chao Liu <[EMAIL PROTECTED]> To: Weiqi Gao <[EMAIL PROTECTED]> Sent: Tuesday, April 10, 2001 4:50 PM Subject: Re: JNI for linux > Oh,my god. > it is ok,ok. > I use java -Djava.library.path=. > thanks > - Orig

Re: JNI for linux

2001-04-09 Thread Weiqi Gao
> Chao Liu wrote: > > A problem was happened when I use JNI in linux to call my c programme. > I used jdk1.3 and the following is my little test programm: > > [...] > System.loadLibrary("javac"); > [...] > > Exception in thread "main

JNI for linux

2001-04-09 Thread Chao Liu
Hello,A problem was happened when I use JNI in linux to call my c programme. I used jdk1.3 and the following is my little test programm:--JavaCallC.java---import java.lang.*;public class  JavaCallC{  public JavaCallC() {  System.loadLibrary("javac")

Jni and threads

2001-02-28 Thread Evagelia Triantafillou
Hello, I have a C routine for image segmentation and I use it through the JNI. Each of the four threads used, reads a diffrent image, it segments the image, extracts some features and returns them to the Java program.But unfortunately the threads can not work together.Has anyone an idea of

JNI and pthreads

2001-02-27 Thread Valerio Ferrucci
Hi, I have a C application that uses Invocation API and JNI to load a JVM and call Java classes from C code. In my application I use posix threads calls (like pthread_lockmutex, pthread_create etc...). Since I know that is not good to mix native threads with pthreads, I link my app with

Re: JNI and Threads

2001-02-23 Thread Nathan Meyers
Valerio Ferrucci wrote: > Hi, > I'm building a mutli thread C application using JNI and Invocation API to load > Java Virtual Machine and call Java code. > To launch a new thread I used the call: > > pthread_create > > Now that I link JNI, whit which call have I

JNI and Threads

2001-02-22 Thread Valerio Ferrucci
Hi, I'm building a mutli thread C application using JNI and Invocation API to load Java Virtual Machine and call Java code. To launch a new thread I used the call: pthread_create Now that I link JNI, whit which call have I to substitute "pthread_create"? That is, how can I laun

Re: JNI Question - I want to open a file for Read/Write

2001-02-15 Thread Santosh Dawara
e going to the file?? I have a stand-alone program which does the same thing, but fellas, it works, the file gets filled with DEBUGS for the same Input. It just does not work the same Under JNI. > BTW, what's the Linux connection? I am doing all my testing On Linux, naturally I th

RE: JNI Question - I want to open a file for Read/Write

2001-02-07 Thread Stefaan A Eeckels
#x27;ll no longer have to speculate. > Maybe I am not clear as to what JNI can and cannot do. > Would anyone be willing to help? I'm using the JNI to access local files without problems. BTW, what's the Linux connection? Stefaan -- How's it supposed to get the respec

JNI Question - I want to open a file for Read/Write

2001-02-07 Thread Santosh Dawara
One more JNI Questions. I am trying to open a file in the usual way, (fopen) However, fopen returns the an unusual NULL. At first I thought I probably did not have permissions. I am sure its not that. Maybe I am not clear as to what JNI can and cannot do. Would anyone be willing to

Will JNI do this?

2001-02-06 Thread soonho
Hi,   I have a program of networking, which will implement Mobile Internet Protocol. This program in in C and run in Linux.   Now we plan to create a Java GUI to show the operation of this program.   Does JNI able to do this? By using JNI (Java invokes C) or Innovation API (C invokes Java

Need info on jni,heap,stack to solve jni problem, Blackdown-1.3.0-FCS

2001-02-04 Thread Barnet Wagman
I'm encountering a rather serious problem using the jni with Blackdown-1.3.0-FCS (kernel 2.2.14, SuSE 6.4) . The problem is actually causing problems in my system as a whole. I suspect it has to do with memory allocation , and it would help to have some information about how memory for j

Re: JNI and command-line arguments

2001-01-18 Thread Juergen Kreileder
>>>>> "soonho" == soonho <[EMAIL PROTECTED]> writes: soonho> I have a C program running in Linux using command line soonho> argument - main (int argc, char *argv[]). How to use JNI soonho> to call this command-line argument? I need to use JN

JNI and command-line arguments

2001-01-17 Thread soonho
Dear sir, I have a C program running in Linux using command line argument - main (int argc, char *argv[]). How to use JNI to call this command-line argument? I need to use JNI cause my C program involve OS-specific function. Is Innovation API - creating VM will solve this problem. I heard

Re: JNI problem

2001-01-09 Thread Paul Mclachlan
At 1:20 01 Jan 2001 +0530, Dushyanth Harinath wrote: > Iam trying to use a existing c library and build a java based interface for > it.I have written a java program for this and created the corresponding > header file and i have also written a c file to execute the native methods. > while compi

JNI problem

2001-01-09 Thread Dushyanth Harinath
Ho guys, Iam trying to use a existing c library and build a java based interface for it.I have written a java program for this and created the corresponding header file and i have also written a c file to execute the native methods. while compiling through gcc it doesnt give me any errors and the

Re: JNI pthreads problem

2000-12-17 Thread Juergen Kreileder
ic-linking... Valerio> [Dynamic-linking... Valerio> ... Valerio> [Dynamic-linking native method java/lang/Double.longBitsToDouble...JNI] Valerio> SIGSEGV11* segmentation violation Valerio> si_signo [0]: no signal Valerio> Does the example at

Re: JNI pthreads problem

2000-12-17 Thread Juergen Kreileder
>>>>> "valerio" == valerio <[EMAIL PROTECTED]> writes: valerio> I have a problem. I'm building a module for valerio> apache. apache doesn't like modules linked with valerio> libpthread.so. valerio> To use JNI in my app

Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
the best way to communicate between the module and application? Do you think the overhead (for interprocess communication) will be inacceptable (I need speed!)? Paul Mclachlan wrote: > After all that, I'm still in agreement with you about the outcome - do it in a > seperate VM, not usin

Re: JNI pthreads problem

2000-12-14 Thread Paul Mclachlan
so strange. While JServ/Tomcat works this way, it really would be quicker to do this communication via JNI calls than pipe it across another socket. There was an (attempt at) an effort to do this with Apache open-source, I'm not sure where that's going... > Why does Apache "n

Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
Hi John, ok, I have an application that uses invocation API. But there I have another problem. When I launch it I see the logs message [Dynamic-linking... [Dynamic-linking... ... [Dynamic-linking native method java/lang/Double.longBitsToDouble...JNI] SIGSEGV11* segmentation violation

Re: JNI pthreads problem

2000-12-14 Thread Rousseau, John
On Thursday Dec 14, 2000, Valerio Ferrucci wrote: > "Rousseau, John" wrote: > > > libhpi.so is the threading package. The one in native_threads is the > > LinuxThreads version. The one in green_threads (amazingly enough) is > > the Green (Sun's all-user-space package) threads version. > > Whic

Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
com > > > On Thursday Dec 14, 2000, Valerio Ferrucci wrote: > > > Hi, > > I'm in trouble with thie JNI pthreads problem. > > > > Can someone help me on my JNI pthreads problem? > &

Re: JNI pthreads problem

2000-12-14 Thread Rousseau, John
--- On Thursday Dec 14, 2000, Valerio Ferrucci wrote: > Hi, > I'm in trouble with thie JNI pthreads problem. > > Can someone help me on my JNI pthreads problem? > Or perhaps can you point me to some other (more appropriate for this topic) > mailing-list? >

Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
Hi, I'm in trouble with thie JNI pthreads problem. Can someone help me on my JNI pthreads problem? Or perhaps can you point me to some other (more appropriate for this topic) mailing-list? Or some other source of support? Thanks > >Hi, > >I have a problem. > >I'm

Re: JNI pthreads problem

2000-12-13 Thread Mr.Y.SHIVAKANT
-Original Message- From: valerio <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, December 14, 2000 1:13 AM Subject: JNI pthreads problem >Hi, >I have a problem. >I'm building a module for apache. apache doesn't like mod

JNI pthreads problem

2000-12-13 Thread valerio
Hi, I have a problem. I'm building a module for apache. apache doesn't like modules linked with libpthread.so. To use JNI in my application (Invocation API) I link it with libjvm.so and libhpi.so. With ldd I see that these libraries link with pthreads!!! This is a problem with apache

JNI panic message

2000-11-06 Thread Yuji Suzuki(FUNAI-TKY)
Hi all, I tried following JNI program. It was displayed "JNI panic ... " message on the screen when if executed it. I don't understand something wrong. Please advice me < My Test Environment(when wrong message): > < arm-linux 2.2.14(CPU=SA1110) + jdk118_v2 >

Re: problem with jni lib

2000-11-02 Thread kason wong
; > > > I think I should make my problem more clear. I used to use libutil.a libpthread.a >libcops.a to make ReqMsg.cxx executable. now I want to use COPS.cxx and > > .h files (JNI layers) to link a java program to call ReqMsg. so I modified a >little of you Makefile to do

Re: problem with jni lib

2000-10-31 Thread Joi Ellis
On Tue, 31 Oct 2000, kason wong wrote: > Hi, > > I guess I know what's the really problem is. > > I think I should make my problem more clear. I used to use libutil.a libpthread.a >libcops.a to make ReqMsg.cxx executable. now I want to use COPS.cxx and > .h files (J

Re: problem with jni lib

2000-10-31 Thread Joi Ellis
On Tue, 31 Oct 2000, kason wong wrote: > Hi, > > I get another problem when i ran the java program with jni calling c++ program. > Is it the bug of green thread? See Liang's JNI book, page 141. It discusses the evils of mixing thread models. Liang doesn't mention Linux

Re: problem with jni lib

2000-10-31 Thread kason wong
Hi, I guess I know what's the really problem is. I think I should make my problem more clear. I used to use libutil.a libpthread.a libcops.a to make ReqMsg.cxx executable. now I want to use COPS.cxx and .h files (JNI layers) to link a java program to call ReqMsg. so I modified a littl

Re: problem with jni lib

2000-10-31 Thread kason wong
Hi, I get another problem when i ran the java program with jni calling c++ program. Is it the bug of green thread? method unknown (eip = 400dc51b) SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [0]: SI_USER

Jni and lock

2000-10-30 Thread Gurumurthi, Nandakumar
> Hi, > > I am trying to lock a file ( using jni and fcntl( ) ) from java on Linux, and > i am not able to do it. > > When I write pure C++ code to achieve the same functionality, the locking > happens fine - ie, when i run the program it locks the file, and when I run &

Re: problem with jni lib

2000-10-30 Thread Joi Ellis
# Carol's C api libraries in their converted form # These start as .a files, I have to convert them to # shareable .so files for JNI to access them. # JAPILIBS=\ $(LIBOUT)/libjsystem.so # $(LIBOUT)/libjnat.so \ # $(LIBOUT)/libjudpmsg.so \ # $(LIBOUT)/libjuser.so \ # $(LIBOUT)/lib

Re: problem with jni lib

2000-10-30 Thread kason wong
I guess I finally understand. but i still have problem in compiling one lib: libutil.so which used the libpthread.a lib in c. I try to convert libpthread.a to .so, it seems strange but when i load it: ld -shared -o libpthread.so --whole-archive /local/usr/lib/libpthread.a ldd -r libpthread.so

Re: problem with jni lib

2000-10-30 Thread Joi Ellis
On Mon, 30 Oct 2000, kason wong wrote: > Hi, > > thanks, but I still have some problem when i tried to compile all lib into a static >lib. > > g++ -o libCOPS.a COPS.o -L/home/kwong/thesis/codes/lib -lcops -lutil -lpthread > /usr/lib/crt1.o: In function `_start': > /usr/lib/crt1.o(.text+0x18):

Re: problem with jni lib

2000-10-30 Thread kason wong
returned 1 exit status make: *** [libCOPS.a] Error 1 cheers, Kason Joi Ellis wrote: > On Sun, 29 Oct 2000, kason wong wrote: > > > Hi, > > > > Can i load more than one library in jni? I have 4 lib used in my program: > > System.loadLibrary(&

Re: problem with jni lib

2000-10-29 Thread Joi Ellis
On Sun, 29 Oct 2000, kason wong wrote: > Hi, > > Can i load more than one library in jni? I have 4 lib used in my program: > System.loadLibrary("pthread"); > System.loadLibrary("util"); > System.loadLibrary("cops"); > System.loadLibrary(&q

Re: problem with jni lib

2000-10-29 Thread kason wong
Hi, Can i load more than one library in jni? I have 4 lib used in my program: System.loadLibrary("pthread"); System.loadLibrary("util"); System.loadLibrary("cops"); System.loadLibrary("COPS"); and i 've got this error msg wh

Re: problem with jni lib

2000-10-29 Thread Joi Ellis
can give me some help here. Here's a makefile I use for compiling a jni layer which calls routines in *.a files. libsystem.a is the original library. This gets converted to libsystem.so for use in the link step. The final loadable library is libjsystem.so. JNsApiSubsystemInterfaces.c a

problem with jni lib

2000-10-29 Thread kason wong
hi, I'm not sure this is the mail-list i should send my question. please let me know if I've got the right place. my problem is in the compiling a function in c++ to a .so lib file. the case is I use a couple static .a lib in that c++ program and when i compile it to a .so lib. it doesn't inclu

Re: Using JNI from kernel module

2000-10-22 Thread pbmonday
r may serve this purpose, but add enough overhead and complexity that the kernel code itself would become its own little mess, combined with the performance degradation of adding the message layer (in addition to the JNI layer). Wellsince I don't have time to write a message layerI guess I

Re: Using JNI from kernel module

2000-10-18 Thread Alexander V. Konstantinou
On Wed, Oct 18, 2000 at 03:13:07PM -0500, [EMAIL PROTECTED] wrote: > Hi, > > I'm trying to use JNI from a kernel module. One of the first things I have > to do when the module is initialized is create a JVM, to do this I use the > JNI_CreateJavaVM method that is #included f

Re: Using JNI from kernel module

2000-10-18 Thread Joi Ellis
On Wed, 18 Oct 2000 [EMAIL PROTECTED] wrote: > Hi, > > I'm trying to use JNI from a kernel module. One of the first things I have > to do when the module is initialized is create a JVM, to do this I use the > JNI_CreateJavaVM method that is #included from jni.h. Needless

Using JNI from kernel module

2000-10-18 Thread pbmonday
Hi, I'm trying to use JNI from a kernel module. One of the first things I have to do when the module is initialized is create a JVM, to do this I use the JNI_CreateJavaVM method that is #included from jni.h. Needless to say, when I do an insmod I receive: CRBD.o: unresolved s

Re: question about building libraty for JNI

2000-10-02 Thread Aaron Stromas
ocal/java/jre/lib/i386/classic doesn't help either. > > Any idea what is going on? TIA, > > -a > > Joi Ellis wrote: > > > "Aaron M. Stromas" wrote: > > > > > > greetings, > > > > > > I need a little assistance with

Re: question about building libraty for JNI

2000-10-02 Thread Aaron Stromas
> > I need a little assistance with building a shared library for JNI under > > Linux 2.2. > > This is how I went about creating the library: > > > > compiling: g++ -I /usr/local/java/include > > -I/usr/local/java/include/linux -shared -fPIC -o keys.o keys.c > &

Re: question about building libraty for JNI

2000-10-02 Thread Joi Ellis
"Aaron M. Stromas" wrote: > > greetings, > > I need a little assistance with building a shared library for JNI under > Linux 2.2. > This is how I went about creating the library: > > compiling: g++ -I /usr/local/java/include > -I/usr/local/java/include

question about building libraty for JNI

2000-10-02 Thread Aaron M. Stromas
greetings, I need a little assistance with building a shared library for JNI under Linux 2.2. This is how I went about creating the library: compiling: g++ -I /usr/local/java/include -I/usr/local/java/include/linux -shared -fPIC -o keys.o keys.c linking: gcc -shared -Wl,-soname,libkeys.so -o

Re: RMI JNI and objective c issue.

2000-07-21 Thread Rajesh Patel
Juergen Kreileder wrote: > > "Rajesh" == Rajesh Patel <[EMAIL PROTECTED]> writes: > > Rajesh> Full thread dump Classic VM (1.2.2-L, native threads): > > That's not a good combination, the native threads VM in Sun's 1.2.2 > release is somewhat broken. Either try Blackdowns 1.2.2 or Sun's

Re: RMI JNI and objective c issue.

2000-07-21 Thread Juergen Kreileder
> "Rajesh" == Rajesh Patel <[EMAIL PROTECTED]> writes: Rajesh> Full thread dump Classic VM (1.2.2-L, native threads): That's not a good combination, the native threads VM in Sun's 1.2.2 release is somewhat broken. Either try Blackdowns 1.2.2 or Sun's 1.3 beta. Juergen -- Jue

RMI JNI and objective c issue.

2000-07-21 Thread Rajesh Patel
Hi, I have problem which enough people may not be interested but if any one can give any hint, would be appreciated. I am running objective c application using JNI starting JVM from objective c code and calling java application which uses RMI to communicate with my applet for the browser

Re: Thread hangs, signals and JNI

2000-05-20 Thread Juergen Kreileder
> Vasile GABURICI writes: Vasile> I am not questioning your knowledge on the SIGUSR2 issue, Vasile> but note that other JVMs do not seem to use it. For Vasile> instance Sun's JDK 1.2.2 for Linux does NOT use SIGUSR2. I Vasile> have checked the source. Unfortunately their V

Re: Thread hangs, signals and JNI

2000-05-18 Thread Vasile GABURICI
Dear Juergen, Thanks a lot for the 1st class analysis and solution for this problem. You've made my day :-) I've implemented the fix you proposed, and all is fine now with Blackdown JDK 1.2.2. Apparently, I've been living on another planet lately, because I've missed the

Re: 2 JNI questions

2000-05-17 Thread Juergen Kreileder
> Vasile GABURICI writes: Vasile> Dear Blackdown developers, Vasile> I know that your time is precious, so I have only two Vasile> questions regarding the interaction between a C Vasile> application using Linux kernel threads and your JDK Vasile> 1.2.2-RC4: Vasile> 1

Re: Thread hangs, signals and JNI

2000-05-17 Thread Juergen Kreileder
Hi Vasile, Vasile> The AOLServer code for signal handling is very simple. The Vasile> functions NsBlockSignals and NsHandleSignals are included Vasile> bellow. These functions contain all the signal handling Vasile> that is relevant to this issue. AOLServer does more funny V

Re: Thread hangs, signals and JNI

2000-05-17 Thread Vasile GABURICI
The AOLServer code for signal handling is very simple. The functions NsBlockSignals and NsHandleSignals are included bellow. These functions contain all the signal handling that is relevant to this issue. AOLServer does more funny things when it exec()s an external program, but I am not e

  1   2   3   4   >