elmerfud
March 1st, 2007, 12:00 AM
I recently switched my development computer from fc6 to Edgy. Everything works great except I can't build certain java applications.
For example, I need to build a new library for libusbJava.
http://inf.ntb.ch/infoportal/help/index.jsp?topic=/ch.ntb.infoportal/projects.html#libusbjava_installDevice
On my fc6 box, I download the source ( https://svn.ntb.ch/svninf/ch.ntb.usb/ ) cd into the directory and do a "ant linux". It builds without errors.
On edgy, I have installed jdk 5.0 from the ubuntu repositories. I have deleted the stock Java included with edgy. I have installed Eclipse and it runs fine.
However, when I run 'ant linux' for libusbJava I get
"[exec] LibusbJava.cpp:11:17: error: jni.h: No such file or directory"
After much investigation, I compared the synaptic entries for 'java' on both machines. I found that fc6 is using gcc-java whereas edgy is using gcj. I don't see gcc-java in the available package list.
How do I get my application to compile ? Am I right that jni is obtained from gcc-java ?
Thanks.
For example, I need to build a new library for libusbJava.
http://inf.ntb.ch/infoportal/help/index.jsp?topic=/ch.ntb.infoportal/projects.html#libusbjava_installDevice
On my fc6 box, I download the source ( https://svn.ntb.ch/svninf/ch.ntb.usb/ ) cd into the directory and do a "ant linux". It builds without errors.
On edgy, I have installed jdk 5.0 from the ubuntu repositories. I have deleted the stock Java included with edgy. I have installed Eclipse and it runs fine.
However, when I run 'ant linux' for libusbJava I get
"[exec] LibusbJava.cpp:11:17: error: jni.h: No such file or directory"
After much investigation, I compared the synaptic entries for 'java' on both machines. I found that fc6 is using gcc-java whereas edgy is using gcj. I don't see gcc-java in the available package list.
How do I get my application to compile ? Am I right that jni is obtained from gcc-java ?
Thanks.