It is possible to turn off the use of a Java runtime environment in the LibreOffice preferences.
This is done frequently because of startup performance and because Java is often missing on Windows installations (because of maintainability/security considerations, but that's a different story).
I think someone who explicitly unchecks this "Use a Java runtime environment"-checkbox should not be prompted about a missing Java runtime if he/she wants to execute an action that works perfectly without Java, i.e., saving a new Writer document.
I understand that in order to fix this technically correct a lot has to change  which will take at least "a while". But because this can be a really annoying and useless warning that keeps coming back and disrupts the user experience, I also want to suggest to implement an option like "Don't show this warning again" in the meantime.
ps. I have seen bugs that mention this issue, but they either focus on startup or on first use.
ps2. This is also not about the showing "multiple Java warnings"-issue mentioned in #31354
To the best of my knowledge, unless you have an extension installed that is implemented in Java (and we don't include any such extension now), the JVM is not started (or attempted to be started) until you invoke some functionality implemented in Java. So the claim of Java affecting startup performance is likely untrue, folklore.
(In reply to comment #2)
> To the best of my knowledge, unless you have an extension installed that is
> implemented in Java (and we don't include any such extension now), the JVM is
> not started (or attempted to be started) until you invoke some functionality
> implemented in Java. So the claim of Java affecting startup performance is
> likely untrue, folklore.
@tor: I tested it quickly on OS X 10.6 with LO 3.3.2 and it looks like you're right. I did not notice any differences in startup time between Java runtime enabled and disabled with this latest stable LO build. Sorry for not testing this again before posting.
The main point of annoying the user with unnecessary warnings and thus disrupting his workflow, still stands unfortunately.
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
The Java popup still appears with LO 3.4.5 and OS X 10.7 if you click on the document right after startup.
I also gave 3.5.0b3 a quick look and could not trigger the dialog right after startup. Though a longer session in 3.5 is needed to make sure this popup has really been removed (or maybe the developer involved in removing this dialog in 3.5.0b3 could give some insight).
small correction, the dialog in question is not triggered in 3.4.5 after a first click after startup on a document, but after you typed the first letter.
This is a very useful meta-bug to keep track of all the different bug reports about false/unnecessary "Libreoffice requires a Java runtime environment (JRE)" warnings. Thank you for creating it!
However, other meta-bugs (or task bugs) use "Depends on"/"Blocks" the other way around: the particular bug reports "block" the meta/task bug report. This makes much more sense, because it means that as soon as all particular bugs are fixed, the meta-bug is no longer "blocked" and could be closed.
Therefore, and to achieve consistency with all the other meta-bugs (or task bugs), I move all particular bugs from "Blocks" to "Depends on". Thank you for your understanding!
Added bug 31354 to "Depends on" -- it is already fixed, but it is good to link also fixed particular bugs in a meta-bug, to show the progress made until now.
(In reply to comment #6)
> small correction, the dialog in question is not triggered in 3.4.5 after a
> first click after startup on a document, but after you typed the first letter.
Hint: for this special case we have bug 34809.
(Removed all three "See Also" links, because all these bugs are now listed in the "Depends on" list, and this is how linking such particular bugs is done normally. "See Also" is necessary only for linking external bug reports, and for some special cases.)
Added bug 51036 - "Prompts to install Java when cutting and pasting on computer without Java installed".
The component should be just general ("Libreoffice").
Added bug 53446 - "UI: Wrong message 'JRE required' in FILEOPEN dialog".
This is still happening on Mac OS X 10.8.1, with Java 1.7.0_06.
Albeit I've installed JDK (and JRE is also there), there is no reason for issuing a JRE warning when a JDK is present.
It's an annoying warning to say the least and breaks workflow and thought process.
BTW... version 18.104.22.168 of LibreOffice. If you try to copy/past from the "About" it will generate the error/warning.
Added Bug 31269 - "LibreOffice reports that a JRE is required when closing". This issue seems fixed, but nevertheless I add it here; listing also resolved issues is good to document the progress in this area ;-)
To clarify--On Mac OS 10.8.1 and LO 22.214.171.124, if no Java is installed and a text document is opened, the warning dialog box about installing Java pops up when the first character is typed in the document. Clearly, Java is not needed at that time and therefore there is no reason to pop up that message.
With all the security breaches involving Java, I uninstalled Java from my system, but I reinstalled it because I couldn't stand the message each time I opened and attempted to edit a LO document. I've disabled Java in my Web browsers so no big deal, but let's get rid of the Java warnings in LO unless Java is actually needed.
(In reply to comment #16)
> To clarify--On Mac OS 10.8.1 and LO 126.96.36.199, if no Java is installed and a text
> document is opened, the warning dialog box about installing Java pops up when
> the first character is typed in the document.
The same is true on Mac OS X 10.6.8 (probably just with *every* Mac OS version).
Added bug 53446 - “UI: Wrong message 'JRE required' in FILEOPEN dialog”
Added “[Task]” tag, because this *is* a task/tracking bug.
For the record:
Rainer Bielefeld has added bug 55233 -- “FILEOPEN Document causes "Enable JRE" message with disabled Java Runtime Environment”.
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present on a currently supported version of LibreOffice (4.3.5 or later): https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case)
Thank you for your help!
-- The LibreOffice QA Team
We are trying to avoid Java as far as we can.
When deploying LibreOffice 188.8.131.52 we switched off Java in LO Settings and
even didn't install the internal beanshell plugin in LO.
We are using macros, but only LibreOffice Basic ones.
But it's still that when using "Execute Macros" or opening Macro-Window the Message appears "LibreOffice requires Java..."
It totally nonsense that LO is complaining about JAVA if everything is switched off , even the internal LO plugin for Beanshell/JAVA isn't installed.
Is there a way to avoid this "require.." Message ?
It's no solution for us to install Java x32 and x64 (just in case) to quiet LO !
Those JAVA installs need to be updated and patched quite regulary and we want to reduce our security risks.
I notice that every time I open libreoffice the java option (Tools,Options,LibreOffice,Advanced "Use a Java runtime environment) resets as checked. This then generates an error message when LO is called from the command line.
I've never had Java on the current PC, so why is my un-checked setting not being respected?
LO 6.2 shows an annoying dialog at each and every startup asking whether I want to enable java, and I've grown tired of answering "no". There seems to be no way to disable this dialog in the preferences.
Note: the part where java is enabled behind my back after I've explicitly set it to "disabled" seems solved for now.
Under Tools|Options|Advanced the Use a Java Runtime Environment checkbox has no effect. Whatever is done a 'Select JRE' warning message appears at the next start up.