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

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

[Octave-bug-tracker] [bug #55430] usejava starts the JVM if it hadn't be


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #55430] usejava starts the JVM if it hadn't been initialized yet
Date: Thu, 10 Jan 2019 05:28:33 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

Follow-up Comment #5, bug #55430 (project octave):

On my (Windows) box:

GNU Octave, version 6.0.0
:
Octave was configured for "x86_64-w64-mingw32".
:

>> usejava ('jvm')
ans = 1
>>


... so at least that matches Matlab's user-visible behavior (comment #1).

I completely agree with Mike's observation about user expectation:
_"it is safe to call a Java class if this returns true"_
In that respect I cannot follow whay it would matter if the JVM is running, or
not running but can be started, apart from linguistic details ("running" vs.
"available"). Is there a use case example about when that matters?

But Carnë has a valid point in that Matlab can be called with "-nojvm",
obviously in that case usejava('jvm') should return false.
Does Octave has a similar option? E.g., given some older bug report(s) that
the JVM affects CPU flags this might be a useful option.

FTR, from the Matlab docs about the '-nojvm' flag: 
_ ... With nojvm, you cannot use the desktop, figures, or any tools that
require Java® software._



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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