This is a separate bug report for the behavior described in: https://bugs.documentfoundation.org/show_bug.cgi?id=103507#c12 The following behavior happens with versions 5.2.0.4 or 5.2.2.2 or 5.3 alpha1 and Java 8u92, or with 5.2.3.3 and Java 8u112 (there's a different error with earlier versions and Java 8u112 because of bug 103507) in Windows 7. Does not happen with 5.1.5.2 and Java 8u92. => regression 1. Start with a clean profile. 2. Switch to Tables view. The following error is shown: "LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - LibreOffice - Advanced." (then another that connection to the data source could not be established) 3. Restart Base, open database, switch to Tables again. There are no errors anymore, so the error on first run is a bug. Debugging revealed that for this Java version (8u92) on the first attempt jfw_startVM(...) call returns with JFW_E_VM_CREATION_FAILED: http://opengrok.libreoffice.org/xref/core/stoc/source/javavm/javavm.cxx#758 (this was done before bug 103507 was fixed) Since the issue doesn't occur in 5.1, it's a regression, and can be bibisected, but only with Java 8u92 (or likely with anything <= u99) I haven't tried if it occurs in Linux.
Stephan: thought this Java detection problem may be interest you?
I installed 5.2.3 and deleted my profile. I did not get the error. Were you using 32 or 64-bit version? My Java is (build 1.8.0_111-b14), it does not offer a further update to 112. Win 7 Pro 64-bit, Version: 5.2.3.3 (x64) Build ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; Locale: fi-FI (fi_FI); Calc: CL
After more testing, it doesn't happen reliably, maybe ~33-50% of the time. Using 32-bit LO and Java. Java 8u111 and 8u112 are essentially the same, the update ending with 1 only contains security fixes, while the other has additional features (no idea what those are).
Hi Aron, is this issue still happening in master? I recall Samuel doing some changes in this area...
Hi Xisco, yes, I just reproduced with daily build 2017-08-15_01:59:49 / bebaac5eb6ebd2db3e1ea22b1630111343a9c25c.
FWIW, I can also confirm with master OSX
I see the list of available JDKs, but none are selected by default when I first open the Advanced dialog under Preferences.
Tried 10 times with 5.2.5.0 and a clean profile, Win 10, Java 1.8.0_161, but could not reproduce.
My current experience is that with a clean profile: - on Linux a JRE is automatically selected when I open Tools -> Options; LibreOffice -> Advanced, - on Windows no JRE is automatically selected. However, in both cases if I try to reproduce the issue by opening a database, and navigating to Tables view, or even opening a table, it works fine, and if I visit Options then, even on Windows a JRE is selected.
(In reply to Aron Budea from comment #9) > My current experience is that with a clean profile: > - on Linux a JRE is automatically selected when I open Tools -> Options; > LibreOffice -> Advanced, > - on Windows no JRE is automatically selected. (That difference between Linux and Windows is presumably because on Linux the soffice script calls the javaldx helper executable early on, which tries to select a JRE if none has been selected yet.)