bugGNU Octave - Bugs: bug #32477, Java package 1.2.7 won't install...

 
 

bug #32477: Java package 1.2.7 won't install on Octave 3.4.0

Submitted by:  Chansup Byun <cbalways>
Submitted on:  Mon 14 Feb 2011 03:09:43 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: Octave ForgeAssigned to: None
Originator Name: Chansup ByunOpen/Closed: Closed
Release: 3.4.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 23 May 2013 07:39:34 PM UTC, comment #8:

The "timestamp.... " stuff looks an operating system issue to me.

As to JDK: I'm no Java low-level expert, but AFAIK a JDK comprises a JRE.
The Java package installation hard-codes the libjvm.so location from the JDK, not from the JRE.

But an other, more important issue is that you have a 64-bit system, where the jvm is often not in .../client but in .../server.
Usually it suffices to make a symlink in .../server to .../client/libjvm.so

Unfortunately the Java package isn't prepared to catch this for 64-bit systems, and it may never be as Java will be in core Octave in the next stable release - soon to come out.

BTW please move this thread to the help-octave mailing list, do not hijack an old and fixed-bug tracker thread. I think I'll close/lock the discussion.

Philip Nienhuis <philipnienhuis>
Project Member
Wed 22 May 2013 10:04:44 PM UTC, comment #7:

Ok, I have found the problem. I have opened also the new bug #39045 because is potentially related to all the octave forge packages.

Now I have the java package installed but I have still a minor issue. When I execute a function of the java package I got the following error:

octave:5> javamem
warning: timestamp on file /etc/java-config-2/current-system-vm/jre/lib/amd64/client/libjvm.so is in the future
error: java_invoke: /etc/java-config-2/current-system-vm/jre/lib/amd64/client/libjvm.so: failed to load: /etc/java-config-2/current-system-vm/jre/lib/amd64/client/libjvm.so: cannot open shared object file: No such file or directory
error: called from:
error: /usr/share/octave/packages/java-1.2.9/javamem.m at line 65, column 6

/etc/java-config-2/current-system-vm is a symlink to the current java installation (it's managed in this way on Gentoo).

What happens is that libjvm.so is not found because I have installed a JDK and not a JRE. On my system the file is installed below /etc/java-config-2/current-system-vm/jre/lib/amd64/server/libjvm.so

What do you think? Can this be fixed at package level or should it be fixed at distribution level?

Fabio <efferre79>
Mon 20 May 2013 01:25:04 PM UTC, comment #6:

java_invoke is a compiled function living in _java_.oct (in the /usr/local/lib/octave/packages/../java-1.2.9 subdir).

Did you set JAVA_HOME properly?
Do you have a 32 or 64 bit system?
What does "uname -a" say (at the bash prompt?
Is there (in Octave) a directory /usr/local/lib/octave/packages/.../java-1.2.9 in the path? ( ... stands for your arch, just type "path" and check Octave's output)

Philip Nienhuis <philipnienhuis>
Project Member
Sun 19 May 2013 11:45:24 PM UTC, comment #5:

I'm sorry, I was trying to install an older version of java package, not it installs but it still doesn't work correctly :-( I'm working under linux

octave:1> pkg list
Package Name | Version | Installation directory
---------------+---------+-----------------------
java *| 1.2.9 | /usr/share/octave/packages/java-1.2.9

octave:2> system ("javac -version")
javac 1.6.0_45
ans = 0

octave:2> javamem
error: 'java_invoke' undefined near line 65 column 8
error: called from:
error: /usr/share/octave/packages/java-1.2.9/javamem.m at line 65, column 6

I don't see the java_invoke.m function definition in the package. Should I open a new bug report?

Fabio <efferre79>
Sun 19 May 2013 10:44:23 PM UTC, comment #4:

A few more details would be helpful.

Philip Nienhuis <philipnienhuis>
Project Member
Sun 19 May 2013 10:00:50 PM UTC, comment #3:

The same still applies to octave 3.6.4

Fabio <efferre79>
Mon 14 Feb 2011 10:43:44 PM UTC, comment #2:

John, that msg you referred to was about an issue with another variable.

I've already answered the original poster through the OctDev (octave-forge) mailing list, see here:

http://sourceforge.net/mailarchive/message.php?msg_id=27059390

Thx

Philip Nienhuis <philipnienhuis>
Project Member
Mon 14 Feb 2011 07:51:56 PM UTC, comment #1:

To avoid this problem, you just need to rename the variable in the java package to something else.

https://mailman.cae.wisc.edu/pipermail/help-octave/2011-February/044625.html

John W. Eaton <jwe>
Project Administrator
Mon 14 Feb 2011 03:09:43 PM UTC, original submission:

I tried to install a java package, java-1.2.7.tar.gz, on Octave 3.4.0 installation but it failed with the following error:

Chansup Byun <cbalways>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by efferre79 (Posted a comment)
  • -unavailable- added by philipnienhuis (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by cbalways (Submitted the item)
  • -unavailable- added by cbalways
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Feb 2011 07:51:56 PM UTCjweStatusNone=>Octave Forge
      Open/ClosedOpen=>Closed
    Mon 14 Feb 2011 03:09:43 PM UTCcbalwaysCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1