Shared Library Problem

2000-04-07 Thread Syam_Kumar_Abburi
Hi All, I am trying to execute a small program in Java that uses JNI. I have built shared library shared.so. It loads properly as I do not see any Unsatisfied Link Error on console. The JNI function is not being called and Java returns integer 3 as return value when I called the native method.

Re: JDK 1.2 library problem

1999-09-21 Thread Juergen Kreileder
> Pierre Heroux writes: Pierre> I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2 Pierre> glibc2.1, native threads, nojit)on RedHat 5.2. Pierre> I compile a C++ code which invoke JavaVM. Pierre> g++ simple.cpp -I/usr/local/jdk1.2/include -ljava Pierre> I g

Re: JDK 1.2 library problem

1999-09-21 Thread Harri Sunila
On Tue, 21 Sep 1999, Pierre Heroux wrote: > I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2 > glibc2.1, native threads, nojit)on RedHat 5.2. > > I compile a C++ code which invoke JavaVM. > g++ simple.cpp -I/usr/local/jdk1.2/include -ljava > > I get the following message > > /u

Re: JDK 1.2 library problem

1999-09-21 Thread Andreas Jaeger
On Tue, 21 Sep 1999, Pierre Heroux wrote: > I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2 > glibc2.1, native threads, nojit)on RedHat 5.2. RedHat 5.2 comes with glibc 2.0.7 and not with glibc 2.1.x. Please get the correct JDK release for your platform. > I compile a C++ co

JDK 1.2 library problem

1999-09-21 Thread Pierre Heroux
I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2 glibc2.1, native threads, nojit)on RedHat 5.2. I compile a C++ code which invoke JavaVM. g++ simple.cpp -I/usr/local/jdk1.2/include -ljava I get the following message /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefi

Re: Native library problem

1999-08-31 Thread Sheng-Yih Wang
- From: Dimitris Terzis <[EMAIL PROTECTED]> To: 'Java-Linux mailing list' <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 1999 4:42 PM Subject: Native library problem > Hi guys... > > Someone give a hint please, because I 'm next to madness and I don't want

RE: Native library problem

1999-08-31 Thread Dimitris Terzis
Hi... > The beginning of the name also matters. That call will expect to load a > library named "libtest_lib.so". Other requirements: build the sources > with the "-fpic" flag, and link the library with the "-shared" flag. Thanks! About 5 minutes ago, I tried the lib prefix and it worked (I mean

Re: Native library problem

1999-08-31 Thread Sheng-Yih Wang
- From: Dimitris Terzis <[EMAIL PROTECTED]> To: 'Java-Linux mailing list' <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 1999 4:42 PM Subject: Native library problem > Hi guys... > > Someone give a hint please, because I 'm next to madness and I don't want

Re: Native library problem

1999-08-31 Thread Nathan Meyers
Dimitris Terzis wrote: > > Hi guys... > > Someone give a hint please, because I 'm next to madness and I don't want to > break my machine... I have a very-very simple native library, say test_lib, > which I try to load with System.loadLibrary("test_lib"). The £$^£@& compiler > insists that it's

Native library problem

1999-08-31 Thread Dimitris Terzis
Hi guys... Someone give a hint please, because I 'm next to madness and I don't want to break my machine... I have a very-very simple native library, say test_lib, which I try to load with System.loadLibrary("test_lib"). The £$^£@& compiler insists that it's not in java.library.path. I printed ou

Library problem

1999-03-12 Thread sgee
I would like to say first off, Thanks to the blackdown team for getting JDK1.2 ported. I finally got it installed last night and had no problems running it until I tried to implement some of the GUI libraries. Here is my code: import javax.swing.*; public class jfctest extends JFrame{