Java Frustrations.

Java Frustrations.

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
shihan
Posts: 5
Joined: 03 Jun 2006, 19:32

Java Frustrations.

Post 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?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
shihan
Posts: 5
Joined: 03 Jun 2006, 19:32

Post 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 ;)
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Post by koshi »

maybe softlink /usr/include/java to /usr/java/jdk1.6.0_03/include ?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

hmm =s AF has been bamboozled!
shihan
Posts: 5
Joined: 03 Jun 2006, 19:32

Post 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..
Post Reply

Return to “Linux”