You are here

[Fixed] LibreOffice 7.4.5/7.5.2 does not remenber Java location

17 posts / 0 new
Last post
rbon
Offline
Last seen: 1 day 7 hours ago
Joined: 2011-04-30 13:26
[Fixed] LibreOffice 7.4.5/7.5.2 does not remenber Java location

Hi,
I have installed Java Portable (jPortable 32 bit) and I have accepted installation location:
--> PortableApps\CommonFiles\Java
then I have launch LibreOffice 7.4.5.1 - Multilingual-Standard, and I have enabled Java runtime:
--> Tools\Options\Advanced --> ticked 'Oracle Corporation ver. 1.8.0_361' --> Apply --> OK -> for setting up location then I have restarted, but Java RE remain unticked.
Why?
This had already happened with the latest builds.

System info:
Windows 7, x64, Ita

ANTICHRISTUS REX
ANTICHRISTUS REX's picture
Offline
Last seen: 10 hours 58 min ago
Translator
Joined: 2019-07-19 07:09
LibreOffice's bug

Looks like a LO itself related bug. The 7.4.x version is generation a lot of bugs.
It crashed when updated, after finding a way to run some Java related extensions (not only LanguageTool).

The best way is to report it to the Document Foundation!

“My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”

― Nikola Tesla ―

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Automatic

It should be automatic via the launcher. Are you manually changing the location for some reason?

Sometimes, the impossible can become possible, if you're awesome!

rbon
Offline
Last seen: 1 day 7 hours ago
Joined: 2011-04-30 13:26
Are you manually changing the location?

Are you manually changing the location for some reason?

NO.
I use latest 'LibreOffice Portable Fresh' build of 2023-02-23. Both 'LibreOffice Portable' and 'Java Portable' are to 32 bit.

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Confirmed

Ok, I can confirm this issue and think I have a fix. I'll post when I've got a test version for you.

Sometimes, the impossible can become possible, if you're awesome!

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Test Fix 2023-03-04

I've put together a test fix that seems to work. You can download this zip file to try it. Unzip it to your LibreOfficePortable directory (after backing it up). This will replace the LibreOfficePortable.exe launcher as well as the LibreOfficePortable.ini and custom.nsh launcher files within App\AppInfo\Launcher.

Sometimes, the impossible can become possible, if you're awesome!

rbon
Offline
Last seen: 1 day 7 hours ago
Joined: 2011-04-30 13:26
Test Fix 2023-03-04

I confirm that Your solution works perfectly. Ok
Thank You very much.

Do You think to put this solution to next LibreOffice Portable? LibreOffice 7.5.1 has already released at March 2, 2023.

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Yes

Yes, it's a part of the 7.5.1 build. I'm caring for a family member but will be working on the build shortly. It needs some extra attention to test for and offer an OS-level patch on some systems that is now required on 7.5+.

Sometimes, the impossible can become possible, if you're awesome!

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Persists in 7.5.2

This persists in 7.5.2. 7.5.2 came out while I was working on 7.5.1 and I accidentally lost the updates as I transitioned over. As most users won't need this, I won't be doing a revision but will include the patch in the next release. Users who need this can continue applying the fix above: https://portableapps.com/comment/252850#comment-252850

Sometimes, the impossible can become possible, if you're awesome!

rbon
Offline
Last seen: 1 day 7 hours ago
Joined: 2011-04-30 13:26
Unfortunately the fix of 2023-03-04 does not work

Unfortunately the fix of 2023-03-04 does not work.
It seemed to work, but after I closed the program .. at the next restart it gave me the error message (please do a fresh install).
I will keep LibreOffice like this until the next build.
Thanks.

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Worked Before?

Just to confirm, it worked on 7.4.5 but not in 7.5.2, correct?

Sometimes, the impossible can become possible, if you're awesome!

rbon
Offline
Last seen: 1 day 7 hours ago
Joined: 2011-04-30 13:26
Worked Before?

Yes, I confirm that is worked perfectly on 7.4.5.
I investigated deeply.
LO 7.5.2 with fix 2023-03-04 works, but if you try to build yourself an updated version of the installer it doesn't:

Processing script file: "C:\PortableApps\LibreOfficePortable\Other\Source\PortableApps.comInstaller.nsi" (UTF16LE)
warning 6000: unknown variable/constant "{OPTIONALSECTIONINSTALLEDWHENSILENT}" detected, ignoring (macro:_==:1)
File: "..\..\Optional1\*.*" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "C:\PortableApps\LibreOfficePortable\Other\Source\PortableApps.comInstaller.nsi" on line 1911 -- aborting creation process

so I thought it's really not worth applying the old patch, and maybe not even a new one.

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Launcher Only

The patch is for the launcher only. It has nothing to do with the installer.

The error you're seeing is because you need a text file called extra_languages_removed.txt within the App\libreoffice folder. It uses this to allow the optional section of the installer to be created and is unrelated to this thread.

Sometimes, the impossible can become possible, if you're awesome!

rbon
Offline
Last seen: 1 day 7 hours ago
Joined: 2011-04-30 13:26
Worked Before?

here are the screenshots of the fix 2023-03-04 on LO 7.5.2.
file 'LibreOffice 7.5.2 fix 2023-03-04.zip': https://www.upload.ee/files/15120954/LibreOffice_7.5.2_fix_2023-03-04.zi...

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Relevant

Those screenshots aren't relevant to what we're discussing here. What matters is whether or not the patch fixes the Java issue. Do not try to recompile the installer or launcher.

Sometimes, the impossible can become possible, if you're awesome!

rbon
Offline
Last seen: 1 day 7 hours ago
Joined: 2011-04-30 13:26
Yes, the patch (fix 2023-03)

Yes, the patch (fix 2023-03-04) fixes the Java issue also in LO 7.5.2, even if I restart my PC.

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 50 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed

This is fixed with today's released of LibreOffice Portable Fresh 7.5.3 and Still 7.4.7.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments