Created attachment 111728 [details]
Picture of missing JRE warning
Trying to assign a action to an event for dialog-controls and using the "macro.." button, you will get a warning of missing JRE.
This is missleading - no JRE is nessessary to fullfill the action.
So - please remove this warning!
Warning will pop up every time, you assign an action to an event!
To reproduce the error:
Create a new dialog in basic-IDE - assign a control-element (f.e. an Pushbutton),
try to assign an action - (select "macro..") - the warning will appear.
Click on OK - and you can work as expected. Everything works fine - no JRE is nessessary.
New Computer with Windows 8.1 - no JRE installed.
JRE is necessary for some components in LibreOffice (most notably databse). The warning is not superfluous. Adding triggers for when to show the message vs. showing it one time is a pain...closing as WONTFIX.
FWIW: We are slowly trying to purge JRE completely, so at some point, JRE might actually be unnecessary to run every component in LibreOffice
and "Java" - not sure what the latter is actually.
the problem is, if you click on the macro tab we need to
find out if there are any events configured with
any of the existing script providers, so we need to load the
script provider, and to do that for the JRE based ones
we need the JRE.
there's a bit of a question of whether anybody actually
uses the JRE based script providers - probably not,
so there was an idea to remove them from the product
and into a (non-bundled) extension, but nobody had time
to work on that so far.
Hm. Closing WONTFIX a reasonable request? Just because someone thinks that there's no resources, in a community that relies upon attracting new volunteers for fixing what matters to them?
The message is shown from stoc_javavm::JavaVirtualMachine::getJavaVM(const com::sun::star::uno::Sequence<signed char> & rProcessId) in stoc/source/javavm/javavm.cxx. There's a switch that discriminates against reason to call (e.g., JFW_E_JAVA_DISABLED).
It calls bool askForRetry(css::uno::Any const & rException), that shows the message.
It is possible to make minimal changes in any of these to silence the message either for a specific switch or universally based on a LO setting, e.g. after shown once. It is not such pain, actually, it's an easyhack.
A patch is submitted for review: https://gerrit.libreoffice.org/30529
It makes the warning to only appear once per LO session, making relevant fields static.
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":
tdf#88023: Only warn about unavailable JRE once
It will be available in 5.3.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.