From owner-freebsd-java Sun Feb 1 18:54:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA19353 for java-outgoing; Sun, 1 Feb 1998 18:54:55 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA19347 for ; Sun, 1 Feb 1998 18:54:54 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id TAA11093; Sun, 1 Feb 1998 19:54:48 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id TAA26197; Sun, 1 Feb 1998 19:54:46 -0700 Date: Sun, 1 Feb 1998 19:54:46 -0700 Message-Id: <199802020254.TAA26197@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Ian Grigg Cc: freebsd-java@FreeBSD.ORG Subject: Re: jdk115 JNI requires ELF, gcc makes a.out In-Reply-To: <34D531C8.2B6B8D8B@systemics.com> References: <34D531C8.2B6B8D8B@systemics.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe java" > I've been using your FreeBSD JDK 1.1.5, and it hums. I've compiled up > and tested all of the current Cryptix distribution, and it went through > with no problems. Cool. There are still some gotchas to track down, but for the most part it seems to work. > I'm now trying something harder: Cryptix-C Native (JNI). I've got it to > compile ok, with only this change: > > cd bin; ln -s i386 i586 > > which was required for javah. Weird? They are doing something non-portable. > However, the result that is produced by gcc is a.out format, and the JVM > seems to require ELF. Huh? I don't think so. FreeBSD doesn't do ELF, so nothing we've created requires and/or uses ELF. If the Cryptix-C stuff in JNI, do they provide you with C sources and/or libraries? If libraries, are *they* ELF compiled? If so, then they are not for FreeBSD, but for Solaris and/or Linux, and will not work under FreeBSD. (That's why they call it Java *NATIVE* Interface, which means it's not portable across architectures/OS's.) In short, the current JDK requires everything to be 100% Pure and/or compiled for FreeBSD in the case of the JNI stuff. Nate