[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JRE not found, windows
From: |
PhilipNienhuis |
Subject: |
Re: JRE not found, windows |
Date: |
Sat, 9 Nov 2019 04:13:00 -0600 (CST) |
nrjank wrote
> I have been using Octave on a WInodws 10 PC that didn't have Java
> installed. Octave is v5.1.0, zip-package-distribution.
>
> I installed 64bit JRE (not JDK) from here:
> https://www.java.com/en/download/
>
> reboot. java is in the path, CLI version check gives:
> C:\>java -version
> java version "1.8.0_231"
> Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
>
> checking registry, I see the following is there:
> HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
> CurrentVersion --> 1.8
>
> but in Octave I get:
>
>>> version -java
> ans = no Java available
>
>>> system("java -version")
> java version "1.8.0_231"
> Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
> ans = 0
>
>
> I have deleted and unzipped a fresh copy of Octave. re-ran
> 'post-install.bat' in case that did something. No change. I checked
> my other computers where Java works fine, and things seem identical
> from what I can see (same reg keys, same install path, etc.) The only
> difference is that Octave reports:
>
> octave:1> version -java
> ans = Java 1.8.0_231-b11 with Oracle Corporation Java HotSpot(TM)
> 64-Bit Server VM mixed mode
>
> what am I missing?
>
> nickj
32- or 64-bit Octave? (you didn't say)
AFAIK the command 'system("java -version")' also works in case of a bit
width mismatch between Octave and Java as it is just a Windows command,
outside Octave.
Philip
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
- JRE not found, windows, Nicholas Jankowski, 2019/11/08
- Re: JRE not found, windows,
PhilipNienhuis <=
- Re: JRE not found, windows, Nicholas Jankowski, 2019/11/09
- Re: JRE not found, windows, Nicholas Jankowski, 2019/11/09
- Re: JRE not found, windows, Markus Mützel, 2019/11/10
- Re: JRE not found, windows, PhilipNienhuis, 2019/11/10
- Re: JRE not found, windows, Nicholas Jankowski, 2019/11/10
- Re: JRE not found, windows, Nicholas Jankowski, 2019/11/10
- Re: JRE not found, windows, Philip Nienhuis, 2019/11/10
- Re: JRE not found, windows, Nicholas Jankowski, 2019/11/10