octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #63971] Invoking Octave's Java subsystem crash


From: Giorgio B
Subject: [Octave-bug-tracker] [bug #63971] Invoking Octave's Java subsystem crashes Octave
Date: Thu, 4 Apr 2024 09:51:28 -0400 (EDT)

Follow-up Comment #15, bug #63971 (group octave):

Sorry , I didn't notice the double hyphen
In the meantime I upgraded jre, now the ansvers are:

from within octave-->

_>> system ("java -version")_
_java version "22" 2024-03-19_
_Java(TM) SE Runtime Environment (build 22+36-2370)_
_Java HotSpot(TM) 64-Bit Server VM (build 22+36-2370, mixed mode, sharing)_
_ans = 0_
_>>_

from command prompt-->

_C:\Windows\SysWOW64>java -version_
_java version "22" 2024-03-19_
_Java(TM) SE Runtime Environment (build 22+36-2370)_
_Java HotSpot(TM) 64-Bit Server VM (build 22+36-2370, mixed mode, _sharing)_

_C:\Windows\SysWOW64>_

So after:
1. renaming '__init_io__.m'
2. restarting Octave
results are:

_>> cd (strrep (which ("oct2xls"), "oct2xls.m", ""))_
_>> pkg load io_
_error: '__init_io__' undefined near line 1, column 1_
_error: called from_
_    C:\Program Files\GNU
Octave\Octave-9.1.0\mingw64\share\octave\packages\io-2.6.4\PKG_ADD at line 1
column 1_
_    load_packages_and_dependencies at line 56 column 5_
_    load_packages at line 53 column 3_
_    pkg at line 639 column 7_
_>> pkg list io_
_Package Name  | Version | Installation directory_
_--------------+---------+-----------------------_
_          io *|   2.6.4 | C:\Program Files\GNU
Octave\Octave-9.1.0\mingw64\share\octave\packages\io-2.6.4_
_>>_
_>> io_testscript ("oct", "io-test.xlsx")_

_Testing interface OCT using file io-test.xlsx..._

_ 1. Initialize arrays..._
_ 2. Insert first empty sheet..._
_'col2num' undefined near line 49, column 10_

_ans =_
_{_
_  [1,1] = OCT_
_  [1,2] = -_
_  [1,3] = -_
_  [1,4] = -_
_  [1,5] = -_
_  [1,6] = -_
_  [1,7] = -_
_  [1,8] = -_
_  [1,9] = -_
_  [1,10] = -_
_  [1,11] = .xlsx_
_}_

I also tried the _xlsread_ function (actually the one I'm interested in),
resulting in Octave still crashing at the _javaMethod_ call:

xlsread           line 379 --> _xls = xlsopen (fn, 0, reqintf, verbose);_
xlsopen           line 308 --> _interfaces = getinterfaces (interfaces,
verbose);_
getinterfaces     line 109 --> _[tmp1, jcp] = __chk_java_sprt__ ();_
__chk_java_sprt__ line  26 --> _if (! isempty (javachk ("jvm")))_
javachk           line 107 --> _dum = methods ("java.lang.Runtime");_
methods           line  72 --> _mtds_str = javaMethod ("getMethods",
"org.octave.ClassHelper", obj);_

wheras obj = "java.lang.Runtime"

Finally, I could not locate the _javaclasspath.txt_ file anywhere. Is it
normal?



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63971>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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