octave-maintainers
[Top][All Lists]
Advanced

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

Re: java and Ubuntu 12


From: Alexander Hansen
Subject: Re: java and Ubuntu 12
Date: Mon, 26 Nov 2012 11:02:23 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0

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 Runtime
>>> I 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
>>
>> Ben
> 
> Those 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.
> 
> Dan

I'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.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/


reply via email to

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