From owner-freebsd-java Sat Aug 18 1:27:10 2001 Delivered-To: freebsd-java@freebsd.org Received: from taka.swcp.com (taka.swcp.com [198.59.115.12]) by hub.freebsd.org (Postfix) with ESMTP id 8DC8037B410 for ; Sat, 18 Aug 2001 01:27:06 -0700 (PDT) (envelope-from msommer@argotsoft.com) Received: from argotsoft.com (argotsoft.com [198.59.115.127]) by taka.swcp.com (8.10.0.Beta12/8.10.0.Beta12) with ESMTP id f7I8R4V28932; Sat, 18 Aug 2001 02:27:05 -0600 (MDT) Received: (from msommer@localhost) by argotsoft.com (8.11.3/8.11.3) id f7I8QTf10870; Sat, 18 Aug 2001 02:26:29 -0600 (MDT) From: "Mark J. Sommer" Message-Id: <200108180826.f7I8QTf10870@argotsoft.com> Subject: Re: FBSD 4.4-RC && Linux JDK 1.3.1 && JNI ??? In-Reply-To: <20010817233637.S87454-100000@pinky.us.net> from Brian Skrab at "Aug 17, 2001 11:40:41 pm" To: Brian Skrab Date: Sat, 18 Aug 2001 02:26:28 -0600 (MDT) Cc: John Utz , freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You'll have to do a cross compile to create a linux lib. I basically wrapped the make in a script which sets up the linux cross compilation environment before calling make. I haven't run this in a while and I did this JDK 1.1.8, but the concept's the same. I was using this with an older version of IBM's VisualAge which was for linux (basically the same problem). #/bin/sh PATH=:/usr/compat/linux/bin:/usr/compat/sbin:/usr/compat/linux/usr/sbin:/usr/com pat/linux/usr/bin:/usr/compat/linux/usr/local/bin:/usr/compat/linux/usr/local/sb in:/usr/compat/linux/usr/local/libexec export PATH echo Removing old library and object file. rm pipeipc.o libipc.so echo Making libipc.so for linux. make echo Copying libipc.so to /usr/local/vaj/ide/program and to JDK directory. cp libipc.so /usr/local/vaj/ide/program cp libipc.so /usr/local/jdk1.1.8/lib/i386/green_threads echo done! > On Fri, 17 Aug 2001, John Utz wrote: > > > ack! this is about perverse! > > > > so, i suspect that your problem is that you are trying to call a FreeBSD > > native lib instead of a linux one. > > That's what I figure. > > > other smarter peep's may have a better answer, but i think that you need > > to either: > > > > compile you jni stuff to be a linux lib, not a FreeBSD one > > Is this possible on a FreeBSD box? Or do I need to compile the > native code in Linux. > > > use a FreeBSD native jvm. but i dunno if 1.1.8 actually knows about jni. i > > cant recall. > > Might the FreeBSD native JDK 1.2.2 be an option? Perhaps I'll give > that a try? > > Thank you for your insight. > > ~brian > bgs@pinky.us.net > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > ~Mark -------------------------------------------------------------------------------- Mark J. Sommer ARGOT Software Corporation, P.O. Box 92020, Albuquerque, New Mexico 87199-2020 FAX: 505-771-0274 PHONE: 505-867-6750 E-MAIL: msommer@argotsoft.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message