Date: Tue, 10 Nov 1998 10:05:09 -0700 From: Nate Williams <nate@mt.sri.com> To: tao@hmbrt.lbl.gov (Tao Zhen) Cc: java@FreeBSD.ORG Message-ID: <199811101705.KAA11762@mt.sri.com> In-Reply-To: <199811100738.XAA09337@hmbrt.lbl.gov> References: <199811100738.XAA09337@hmbrt.lbl.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
> I was playing with the java native method example on the java tutorial > web page (http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html) > I couldn't get this simple example work. I am using FreeBSD 3.0 and jdk1.1.6. > Here's how I created the shared library: > cc -shared -I/usr/local/java/include -I/usr/local/java/include/freebsd > HelloWorldImp.c -o libhello.so The JDK is an a.out binary, so you must use an a.out library to link against it. FreeBSD 3.0 uses ELF, so you must force it to create an a.out library (I don't know how) if you want to use JNI on FreeBSD 3.0. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811101705.KAA11762>
