From owner-freebsd-java Wed Oct 6 20:30:51 1999 Delivered-To: freebsd-java@freebsd.org Received: from isis.uniandes.edu.co (isis.uniandes.edu.co [157.253.54.5]) by hub.freebsd.org (Postfix) with ESMTP id 66EFD15006 for ; Wed, 6 Oct 1999 20:30:41 -0700 (PDT) (envelope-from ser-garc@uniandes.edu.co) Received: from isis (isis [157.253.54.5]) by isis.uniandes.edu.co (8.9.3/8.9.3) with SMTP id WAA21711 for ; Wed, 6 Oct 1999 22:28:35 -0500 (GMT+5) Date: Wed, 6 Oct 1999 22:28:35 -0500 (GMT+5) From: SeRgIo ArTuRo GaRcIa X-Sender: ser-garc@isis To: freebsd-java@freebsd.org Subject: JNI 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 Im trying to run the example in Java tutorial about JNI, but im getting the message "unsupported file type (libNativeDemo.so)" when I run the java program that runs a native method. Im creating libNativeDemo.so with this line gcc -I/usr/local/bin/jdk1.1.8/include/ \ -I/usr/local/bin/jdk1.1.8/include/freebsd -c \ -fPIC -DPIC NativeDemo.c -o libNativeDemo.so any ideas? thanks in advance, Sergio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message