Issue 124102 - Unable to validate permanently java installation, error no valid java after system restart
Summary: Unable to validate permanently java installation, error no valid java after s...
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 4.0.1
Hardware: All Windows 7
: P3 Major (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: usability
Depends on:
Reported: 2014-01-24 13:26 UTC by trebly
Modified: 2014-02-26 23:27 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.0.1
Developer Difficulty: ---

The xml java config file " javasettings_Windows_x86.xml" of openoffive 4.01 (1.12 KB, text/xml)
2014-01-24 13:26 UTC, trebly
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description trebly 2014-01-24 13:26:22 UTC
Created attachment 82384 [details]
The xml java config file " javasettings_Windows_x86.xml" of openoffive 4.01

At first load of (supposed any openoffice application, checked with Writer) I get the error "invalid java".

I have to check OK on Six messages.
Then opening options/java I get the good version.
I can close OpenOffice during the user session I will not get back the error.

The reference of java (x86 version recently updated to 1.7.0_51, I have too, for other applications, the x64 version and old inactivated versions)

The javasettings_Windows_x86.xml file joined seems OK.

So I don't understand what happens.

I don't know what to check else and I have no criteria to filter java registry keys.

The error is always in the defined conditions.
Comment 1 trebly 2014-02-07 12:29:54 UTC

Still without solution.

Even with help which is clear and well known previously, I remain unable to activate correctly and permanently JAVA (reinstalled 1.7.0_51)

Found by menu option/java with parameters, but not activated nor saved with no error message.

May be a problem with administrator rights. The user which installs is myself main-admin, but as this account is used most of time in developments it has to be re-created. The old account damaged by a trojan has been suppressed and replaced, it seems that some products memorises the original creator which don't exists any more but don't checks the current registry and note simply the owner as unknown...
To search and check of all occurrences of the old main admin name as owner is awful.

How to check and why The OK on identification of the java installation don't gives any error message ?

Others products seem to find java.

Please confirm which registry key and or contents of file javasettings_windows_x86.xml must be checked.

Comment 2 trebly 2014-02-12 18:52:05 UTC
Still unable to validate Java installation and no Java functions

Another way to explain :

I need to use Java x64 for Eclipse and other softs.
As OpenOffice is an x32 application, even running on a x64 system the right version of Java to use with is the x32.

Both installation are done and on each cpl they are activated (with different parameters : default for x86 and for x64 large memory options needed by Eclipse to run fast).

>java -version gives :
C:\Users\BTy-Admin-N2x.BTY-ASUSG73>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

When OpenOffice Writer starts I get 9 messages of Java load error.

Then when I run OpenOffice : options/java the x86 installation is found (while x64 Java directory is said as not containing valid Java). 
At OK no error message is displayed, but
no functions depending of java are running (as orthography check)
the help:search generates the error message of no valid installation.

Since years, never I got any problem. This is new. I have not found any special instruction for running both x32 and x64 and OpenOffice recognition of java installation.

Why as Java is not running well the option:java panel finds the right directory and installation but don't send at OK any message to say that "finally" java is not running for OpenOffice ?

Thank for help or reproduce a bug.
I think that these errors can be an issue of the java launch when both x32 and x64 are present on the same x64 system.
Comment 3 trebly 2014-02-26 23:27:00 UTC

Got the explanation, verified.

The extended parameters for java were wrong the value for -xms was defined for x64 version. Then java launch was crashing at start. 

I could not really check why all java launch were crashing while these parameters were not defined into java.cpl but only into ooe parameters (I had not checked them, because there was normally no reason to not have default values)

The problem for which I do think that a little development should be done :

- When OK button for java installation identified version validation is hit, a launch of java and check should be done.

Actually there is no check, then the user think that java is running : if a function like "search" into help is immediately performed then an error message is displayed.
So the user have usability default and non functioning various features without visible reason, when ooe/writer is launched again later the same check is performed and issues to error message. 

The like validated OK and later the check at starting with error is then completely confusing user and administrator. They can think that java installation is not memorized while it has never been valid...

Reports into several forum, time to time of java installation errors are may be reported for the same reason.

Hope to help.

Best regards


note : the orthography failure was another problem reported separately. Typically note that it occurs several times that "repair" installation misses to reinstall needed extensions or create directory accidentally deleted (the reason to reinstall which crashes ooe.