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

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

[Octave-bug-tracker] [bug #53520] Windows builds made with Java 8 JDK on


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #53520] Windows builds made with Java 8 JDK on Linux cannot find Java 9 JRE on Windows
Date: Fri, 30 Mar 2018 03:49:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

URL:
  <http://savannah.gnu.org/bugs/?53520>

                 Summary: Windows builds made with Java 8 JDK on Linux cannot
find Java 9 JRE on Windows
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Fri 30 Mar 2018 09:49:54 AM CEST
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

While investigating bug #53510 I found that after removing the Java 8 JRE and
installing a Java 9 JRE, Octave cannot find the installed Java anymore.
Reinstalling Java 8 makes Octave find Java again.
The Octave version I run on Windows was cross-built with a Java 8 JDK on
Mageia-6 Linux.

Most easily reproduced / detected by simply running the commands:

>> system ("java -version")
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
ans = 0

>> javaclasspath
error: unable to find Java Runtime Environment: software\javasoft\java runtime
environment::CurrentVersion
error: called from
    javaclasspath at line 64 column 16


but trying any javaObject or javaMethod call will show this as well.

Apparently the way the Java JRE is detected on Windows has changed between
Java 8 and Java 9.

This may become a problem for Octave Windows cross-built on Linux with e.g., a
Java 8 JDK and installed on Windows with a Java 9 JRE, or vice versa.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53520>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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