|
From: | Daniel J Sebald |
Subject: | Re: java and Ubuntu 12 |
Date: | Mon, 26 Nov 2012 12:12:21 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 11/26/2012 12:02 PM, Alexander Hansen wrote:
On 11/26/12 10:48 AM, Daniel J Sebald wrote:On 11/26/2012 11:09 AM, Ben Abbott wrote:On Nov 26, 2012, at 11:29 AM, Michael D. Godfrey wrote:On 11/26/12 4:16 PM, Ben Abbott wrote:OpenJDK Java 7 RuntimeI think you need the devel package from: Debian, Ubuntu, /etc./ On the command line, type: *$* sudo apt-get install openjdk-7-jre The |openjdk-7-jre| package contains just the Java Runtime Environment. If you want to develop Java programs then install the |openjdk-7-jdk| package. These names do not quite match what you said, but something with -jdk or -devel is where the headers are. Michael'I already have all the openjdk-7 packages installed. $ apt-cache pkgnames | grep jdk-7 openjdk-7-jre-headless openjdk-7-source openjdk-7-jre-zero openjdk-7-demo openjdk-7-dbg openjdk-7-doc openjdk-7-jdk openjdk-7-jre openjdk-7-jre-lib $ apt-cache --installed pkgnames | grep jdk-7 openjdk-7-jre-headless openjdk-7-source openjdk-7-jre-zero openjdk-7-demo openjdk-7-dbg openjdk-7-doc openjdk-7-jdk openjdk-7-jre openjdk-7-jre-lib BenThose are all runtime environment files. The Octave java tools need the "development kit" or JDK part of things, i.e., the part that creates the byte code that can run within the JRE. Look for the RPM (or whatever is the equivalent) with openjdk Development Kit. DanI'm seeing "openjdk-7-jdk" in Ben's list, and searching the online file database rather than my local machine, I found the following: $ apt-file find jni.h ... openjdk-7-jdk: /usr/lib/jvm/java-7-openjdk-amd64/include/jni.h So it's probably just a matter of setting paths appropriately.
Yes, that is what Rik is suggesting with the Autoconf tools for JDK. For the impatient, a symbolic link in /usr/include to the above file seems to work.
Dan
[Prev in Thread] | Current Thread | [Next in Thread] |