Date: Mon, 9 Nov 1998 23:38:57 -0800 From: tao@hmbrt.lbl.gov (Tao Zhen) To: java@FreeBSD.ORG Message-ID: <199811100738.XAA09337@hmbrt.lbl.gov>
next in thread | raw e-mail | index | archive | help
Hi, there, I was playing with the java native method example on the java tutorial web page (http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html) I couldn't get this simple example work. I am using FreeBSD 3.0 and jdk1.1.6. Here's how I created the shared library: cc -shared -I/usr/local/java/include -I/usr/local/java/include/freebsd HelloWorldImp.c -o libhello.so I've also tried ar and ranlib to create the library. However, when I run the program, it gives me the following error message: bad magic number in "./libhello.so" (libhello.so) Can't find class HelloWorld. Please help. BTW, my compiler is gcc2.7.2.1. Thanks. Tao To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811100738.XAA09337>