Bug 122315 - Warning about missing Java appears every time when opening LO
Summary: Warning about missing Java appears every time when opening LO
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.2.0.1 rc
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Java-Runtime-JRE-Warnings
  Show dependency treegraph
 
Reported: 2018-12-25 08:29 UTC by tomaskeb
Modified: 2023-09-27 16:09 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomaskeb 2018-12-25 08:29:43 UTC
Description:
A window announcing I don't have Java installed appears every time I start LO. I thought I can get rid of it by disabling Java in settings. After that, there is another windows stating that Java is disabled.

It is really disturbing to have to click on a nonsense window every time I want to work when I don't need Java at all…

Steps to Reproduce:
1. Open any LO app

Actual Results:
Window about Java missing appears

Expected Results:
No window should appear, or the window should appear only on the first start


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Mike Kaganski 2018-12-25 08:50:38 UTC
Do you have an extension enabled requiring JRE? Like LanguageTool?
Comment 2 Mike Kaganski 2018-12-25 08:53:10 UTC
Also, you have set version to 6.2.0.1, but haven't mentioned the version in the description, nor if it's some newly introduced problem absent in older (which?) version with same profile/configuration.
Comment 3 tomaskeb 2018-12-25 09:00:32 UTC
Sorry, I tried a fresh profile and it seems it has been caused by the Zotero integration plugin that needs Java for its installation.

However, on 6.1.4 I could install Java, install the Zotero extension and then uninstall Java. LO 6.1 opened no warning after that, but LO 6.2 would.
Comment 4 Mike Kaganski 2018-12-25 09:13:36 UTC
(In reply to tomaskeb from comment #3)
> However, on 6.1.4 I could install Java, install the Zotero extension and
> then uninstall Java. LO 6.1 opened no warning after that, but LO 6.2 would.

Well - that is now the correct behavior. In [1], I had fixed a problem in my previous patch [2], where I broke handling of script providers. When you have extensions installed and enabled, and they need initialization, it's normal and correct that their initialization would ask for JRE to be installed/enabled. If you choose to disable/remove JRE afterwards, it's normal that you'd need to disable corresponding extension(s) to stop warnings. Otherwise, there's possible to have problems with extensions/macros etc.

If you are interested in technical details, commit [2] was meant to not ask for (disabled/absent) JRE *when actually a different script provider (Python) was needed*. That previously happened when no JRE plugins were installed, but some Python plugins were present. But the change mistakenly made it so that no matter if JRE was actually needed or not, the question was no more asked (and the correct provider was always not found if it's not built-in StarBasic).

Closing NOTABUG. Please feel free to set back to UNCONFIRMED if you disagree - and then please provide an explanation why. Thanks for filing this! Any problem is better filed and triaged, to avoid ignoring actual problems. Thank you for helping making LibreOffice a better piece of software!

[1] https://git.libreoffice.org/core/+/09f80aded680fca07e6676f769b80491da12f0bb
[2] https://git.libreoffice.org/core/+/f3ce30ec75a4d7116b9cd4d7b21d9aaa0e237eeb
Comment 5 Mike Kaganski 2018-12-25 10:21:17 UTC
By the way: I have just installed Zotero 5.0.14 to LO 6.2.0.1, and I don't see a "JRE required" warning after disabling JRE in options and starting LO/Writer. It only shows the warning when I try a function on Zotero toolbar. I see that in the nutshell, the Zotero extension is several functions implemented in StarBasic, and those functions in turn call Java functions. This means that initially (until the functions are not called), JRE isn't actually needed. So - my guess would be that (1) an older Zotero extension used some other architecture; or (2) that you are using some document with citations which could try initializing Zotero functions.