From owner-freebsd-java Mon Feb 22 0:53:47 1999 Delivered-To: freebsd-java@freebsd.org Received: from force.stwing.upenn.edu (FORCE.STWING.UPENN.EDU [130.91.120.95]) by hub.freebsd.org (Postfix) with ESMTP id 8733A10F92; Mon, 22 Feb 1999 00:53:45 -0800 (PST) (envelope-from kaplanj@force.stwing.upenn.edu) Received: from localhost (kaplanj@localhost) by force.stwing.upenn.edu (8.8.8/STWing/8.8.8) with ESMTP id DAA28770; Mon, 22 Feb 1999 03:53:44 -0500 (EST) Date: Mon, 22 Feb 1999 03:53:44 -0500 (EST) From: Jonathan Kaplan To: freebsd-java@freebsd.org, java-port@freebsd.org Subject: jni problem in FreeBSD 3.0 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am trying to use the Java Native interface with FreeBSD 3.0 and jdk-1.1.7. The error I get is "bad magic number", which makes sense because everything but java in 3.0 is ELF. So my question is: 1) Is there an easy way to build compatible libraries with the standard 3.0 installation (a switch to ld or something)? I have toyed with building a cross-compiling gcc, but AFAIK that involves building the support libraries I rely on (SSLeay in particular) as a.out, and so on, which is difficult. 2) If not, is there an ELF version of the JDK without awt? (since, as I understand, Motif is the big sticking point in an ELF version) I have also tried the Linux emulator, but it dies with "Bad System Call" during a call to ServerSocket.accept() (which I assume is unrelated to native stuff). If anyone has succeded in using JNI under 3.0, and has a Makefile or something, it would be great. Thanks in advance, -Jon __________________________________________________________________________ Jonathan Kaplan kaplanj@stwing.upenn.edu Computer Science '00 Quadramics Chair University of Pennsylvania SwitchWare Project "It's not so bad being trendy, everyone who looks like me is my friend" -Reel Big Fish http://www.stwing.upenn.edu/~kaplanj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message