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.
> 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
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
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
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
-
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
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
-
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
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
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
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{
11 matches
Mail list logo