Results 1 to 2 of 2

Thread: Problem with Octave and Java

  1. #1
    Join Date
    Sep 2007
    Location
    Earth
    Beans
    110
    Distro
    Ubuntu

    Question Problem with Octave and Java

    I have installed Octave (from repos) for the first time. I also installed the Java API package.
    When I run octave from terminal, here's what I get

    Code:
    warning: timestamp on file /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so is in the future
    error: java_invoke: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so: failed to load: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory
    error: called from:
    error:   /usr/share/octave/packages/java-1.2.8/javaaddpath.m at line 41, column 13
    error:   /usr/lib/x86_64-linux-gnu/octave/packages/io-1.0.19/x86_64-pc-linux-gnu-api-v48+/PKG_ADD at line 20, column 11
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error: addpath: all arguments must be character strings
    error:   /usr/share/octave/3.6.4/m/pkg/pkg.m at line 2357, column 5
    error:   /usr/share/octave/3.6.4/m/pkg/pkg.m at line 2147, column 1
    error:   /usr/share/octave/3.6.4/m/pkg/pkg.m at line 401, column 7
    error:   /usr/share/octave/3.6.4/m/startup/octaverc at line 33, column 1
    The problem is it is looking for OpenJDK whereas I use Oracle Java. JAVA_HOME is correctly set to /usr/lib/jvm/java-7-oracle, so is PATH.

    So how can I tell Octave where to look for JRE and/or JDK?

    Thanks

  2. #2
    Join Date
    Aug 2010
    Location
    Montevideo
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Problem with Octave and Java

    Look in here : http://wiki.octave.org/Java_package#...e_to_Octave.3F
    ( I am using this wiki page for more elemental actions and find it very useful , this java chapter seems exhausive)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •