help-octave
[Top][All Lists]
Advanced

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

Re: New install, Java setup


From: PhilipNienhuis
Subject: Re: New install, Java setup
Date: Wed, 9 Oct 2019 15:52:59 -0500 (CDT)

Brenden,

Sorry for a late reply.
Read on ...


Brenden Towey wrote
> 
> <snip>
> It's got me stumped, at least.  Right now I'm focused more on the 
> discrepancies below, where Octave is apparently looking for "jvm.dll" in 
> the path "C:\Program Files\Java\jdk1.8.0_131/jvm.dll" but the correct 
> path is "C:\Program Files\Java\jdk1.8.0_131\jre\bin\server\jvm.dll"
> 
> It seems like if I could correct that one path variable it might start 
> working.
>> What does the Octave command
>>
>> getenv ("JAVA_HOME")
>>
>> return?
> 
> Yes, definitely this is set.  Tomcat (another program I run on my 
> workstation) requires it  It's:
> 
>  >> getenv ("JAVA_HOME")
> ans = C:\Program Files\Java\jdk1.8.0_131
>  >>
> 
> Which is the correct value for it to be set to.  Many programs and 
> documentation, including documentation directly from Oracle, require 
> JAVA_HOME to be set to the root of the JDK to be correct.

What surprises me is that Octave apparently just adds "/jvm.dll" to
JAVA_HOME rather than including the hierarchy below JAVA_HOME up to server/
I noted this on my Mageia Linux system as well.

FYI, there are some clues here:
https://savannah.gnu.org/bugs/?func=detailitem&item_id=40111

One of the comments there (#31) mentions that JAVA_HOME may only have
forward slashes for Octave being able to use it - can you try if that works
better?
If so, and if your other programs won't work anymore then, could you file a
bug report about JAVA_HOME needing to accept backward slashes on Windows.

Philip




--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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