From owner-freebsd-java Mon May 10 19:32:40 1999 Delivered-To: freebsd-java@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 33AC215C3A for ; Mon, 10 May 1999 19:32:36 -0700 (PDT) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id VAA05955; Mon, 10 May 1999 21:32:32 -0500 (CDT) Date: Mon, 10 May 1999 21:32:32 -0500 (CDT) From: Steve Price To: Ravi Manthena Cc: freebsd-java@FreeBSD.ORG Subject: Re: your mail In-Reply-To: <199905110219.TAA25948@wyoming.apunix.com> 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 On Mon, 10 May 1999, Ravi Manthena wrote: # # Hello, # # I have a question about JNI. I would appreciate your help or suggestion. # # I am currently trying to System.Load a c library in to my freebsd JDK. # # when i try to run the java app i get Bad magic number. # # # I did a file command on my lib and this is what I get. # # ELF 32-bit LSB shared object, intel 80386, version1(FreeBSD),not stripped # # # I was wondering if you know the gcc flags that can be set. So that the # # native library can be loded into my FreeBSD VM. Which accepts # # FreeBSD/i386 Compact demand pager shared library not stripped. You are trying to load an ELF library with an a.out JDK. Needless to say this won't work. Either use an ELF JDK or recompile the library as a.out. # # Thank You, # Ravi Manthena # Java Programmer. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message