octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java jni.h


From: Rik
Subject: Re: Java jni.h
Date: Fri, 07 Dec 2012 11:05:42 -0800

On 12/07/2012 09:42 AM, Michael D. Godfrey wrote:
On 12/07/2012 12:32 PM, Rik wrote:
In practical terms, it may be because you only have the JRE (Java Runtime
Environment) packages for your distribution installed.  You also need the
JDK (Java Development Kit) installed.  On my old Ubuntu 10.04 system I have
the following

dpkg -S /usr/lib/jvm/java-6-openjdk/include/jni.h
openjdk-6-jdk: /usr/lib/jvm/java-6-openjdk/include/jni.h

Cheers,
Rik
I have:
java-1.7.0-openjdk-devel-1.7.0.9-2.3.3.fc17.1.x86_64
java-1.7.0-openjdk-1.7.0.9-2.3.3.fc17.1.x86_64

The devel package provides jni.h at:
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/include/jni.h

There are undoubtably links pointing to that ../include.

 Am I missing something?
Java really wants to have the JAVA_HOME environment variable set and pointing to the base directory of the installation.  This is the standard way to distinguish between what could be a multitude of Java environments.  I added support for that feature in 15736:6faa01ff2967, but there have been a number of other useful changes so I would start by fetching the latest Mercurial tip.

Try setting JAVA_HOME to /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64.  You should verify that under JAVA_HOME you also have a bin directory with java, javac, and jar.  After that, run configure.  There is an item for Java in the configure summary that says whether Java will be built or not.

--Rik


Michael






reply via email to

[Prev in Thread] Current Thread [Next in Thread]