From owner-freebsd-java Wed Oct 6 23: 2:10 1999 Delivered-To: freebsd-java@freebsd.org Received: from kitsune.swcp.com (swcp.com [198.59.115.2]) by hub.freebsd.org (Postfix) with ESMTP id 866C014F01 for ; Wed, 6 Oct 1999 23:02:07 -0700 (PDT) (envelope-from msommer@argotsoft.com) Received: from argotsoft.com (argotsoft.com [198.59.115.127]) by kitsune.swcp.com (8.8.8/1.2.3) with ESMTP id AAA29624 for ; Thu, 7 Oct 1999 00:00:58 -0600 (MDT) Received: from rincon (rincon.argotsoft.com [192.168.3.102]) by argotsoft.com (8.9.3/8.8.7) with SMTP id XAA17335 for ; Wed, 6 Oct 1999 23:59:26 -0600 (MDT) (envelope-from msommer@argotsoft.com) Message-Id: <3.0.3.32.19991006235923.009ca830@mail> X-Sender: msommer@mail X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Wed, 06 Oct 1999 23:59:23 -0600 To: freebsd-java@freebsd.org From: "Mark J. Sommer" Subject: Re: JNI In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Try: gcc -I/usr/local/bin/jdk1.1.8/include -I/usr/local/bin/jdk1.1.8/include/freebsd -Wall -pipe -shared -c ... Think you're missing the -shared. JNI works fine for me on FreeBSD. At 10:28 PM 10/6/99 -0500, you wrote: >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 > > ~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