Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 02:26:28 -0600 (MDT)
From:      "Mark J. Sommer" <msommer@argotsoft.com>
To:        Brian Skrab <bgs@pinky.us.net>
Cc:        John Utz <john@utzweb.net>, freebsd-java@FreeBSD.ORG
Subject:   Re: FBSD 4.4-RC && Linux JDK 1.3.1 && JNI ???
Message-ID:  <200108180826.f7I8QTf10870@argotsoft.com>
In-Reply-To: <20010817233637.S87454-100000@pinky.us.net> from Brian Skrab at "Aug 17, 2001 11:40:41 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108180826.f7I8QTf10870>