Page 1 of 1

Java Frustrations.

Posted: 13 Nov 2007, 07:17
by shihan
Hi all,

im stuck, using fedora 8 (was working in fedora 7 x86_64, excluding AI which caused some serious hangs on my machine), but i've switched to 32bit fedora8 (for other reasons), and i cant get spring to find java:

Checking for Java... not found
Guessing Java include path... /usr/include/java
...
and ultimately
...
Checking for C++ header file jni.h... no
Could not find one of these headers: ['jni.h']


No matter what i do, i end up with that and its getting a little frustrating. What does the configure script try and do to find java? or what do i have to tell it to make it find java?

Posted: 13 Nov 2007, 07:20
by AF
Java runtime != Java development kit

The scons script comment is somewhat misleading there.

You need the jdk not the jre to compile the unitsync java API.

Posted: 13 Nov 2007, 10:47
by shihan
AF wrote:Java runtime != Java development kit

The scons script comment is somewhat misleading there.

You need the jdk not the jre to compile the unitsync java API.
[xxx@radon tools]$ rpm -q -i jdk
Name : jdk Relocations: /usr/java
Version : 1.6.0_03 Vendor: Sun Microsystems, Inc.
Release : fcs Build Date: Tue 25 Sep 2007 05:46:56 PM EST

[xxx@radon tools]$ find /usr/java -name jni.h
/usr/java/jdk1.6.0_03/include/jni.h

yes, its a jdk ;)

Posted: 13 Nov 2007, 10:54
by koshi
maybe softlink /usr/include/java to /usr/java/jdk1.6.0_03/include ?

Posted: 13 Nov 2007, 11:18
by AF
hmm =s AF has been bamboozled!

Posted: 13 Nov 2007, 11:44
by shihan
koshi wrote:maybe softlink /usr/include/java to /usr/java/jdk1.6.0_03/include ?
tried that, but it still fails to build..

Posted: 13 Nov 2007, 14:01
by malric