Issue 118352 - Enhance OOo to detect JRE 7.0 version
Summary: Enhance OOo to detect JRE 7.0 version
Status: CLOSED FIXED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: OOo 3.3
Hardware: All All
: P3 Normal (vote)
Target Milestone: OOo 3.3
Assignee: Ariel Constenla-Haile
QA Contact: issues@installation
URL:
Keywords:
: 118749 (view as issue list)
Depends on:
Blocks:
 
Reported: 2011-07-28 19:44 UTC by mschmidt_glz
Modified: 2012-06-19 06:01 UTC (History)
9 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
File | Wizards | Webpage working with JRE/JDK 7 (375.27 KB, image/png)
2012-01-13 21:04 UTC, Ariel Constenla-Haile
no flags Details
Web Wizard working with JRE/JDK7 on Windows 7 (64 bits system, AOO 32 bits, Java 32 bits) (464.98 KB, image/png)
2012-01-14 09:36 UTC, Ariel Constenla-Haile
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mschmidt_glz 2011-07-28 19:44:21 UTC
After a Update of Java 7.0 OOo detect not the path to Java and I can it not select manual so that I mast disabled Java.
Comment 1 pgaga 2011-08-01 19:39:34 UTC
Monday, August 01, 2011

I first saw this reported on OOOForum.org and tested with Oracle Open Office 3.3.1 to confirm the problem on a WinXP system.

Phil
Comment 2 Jakob 2011-11-23 14:57:12 UTC
I have a x64 Windows 7 Enterprise with java 7u1 i586 and java 7u1 x64 installed. None of these are found by OOo. I installed java 6u29 i586 and OOo found this java
/Jakob
Comment 3 Marcus 2011-11-23 16:32:05 UTC
This is correct.

OOo 3.3 cannot detect any JRE that is 64-bit. You have to use a 32-bit but only JRE 6u(xyz) is possible, version 7 will come later. AFAIK this is for all platforms.
Comment 4 Ariel Constenla-Haile 2012-01-08 00:30:10 UTC
Started.
Base problem: "Oracle Corporation" is not recognized as a valid vendor.
Comment 5 orcmid 2012-01-08 04:32:46 UTC
Funny.

The same problem showed up in a different way (Maven POM checking of java.vendor) at https://issues.apache.org/jira/browse/ODFTOOLKIT-299
Comment 6 Marcus 2012-01-10 22:24:32 UTC
*** Issue 118749 has been marked as a duplicate of this issue. ***
Comment 7 Ariel Constenla-Haile 2012-01-12 02:28:21 UTC
Fixed with revision 1229371

I will wait to resolve this as fixed until someone can confirm it is actually fixed.
Comment 8 orcmid 2012-01-12 16:26:28 UTC
@Ariel,

What configurations do you need to see confirmed?  (And where are the builds?).
Comment 9 Ariel Constenla-Haile 2012-01-12 20:48:29 UTC
(In reply to comment #8)
> @Ariel,
> 
> What configurations do you need to see confirmed?  

* Install the JRE 7 in the default location
* Install the JDK 7 in the default location

they both should appear in the dialog Tools - Options - OpenOffice.org - Java

For example, I have installed:

C:\Archivos de programa\Java\jre6
C:\Archivos de programa\Java\jre7
C:\Archivos de programa\Java\jdk1.6.0_19
C:\Archivos de programa\Java\jdk1.7.0_02

The option dialog shows the 4 JRE automatically:
http://people.apache.org/~arielch/images/Java7_WinXP.png


* JREs not installed but placed on non-default locations won't appear on the dialog by default, but can be added by pressing the "Add" button and selecting the folder

For example, I have copies of the JREs in

C:\java\jre6
C:\java\jre7

These folders can be selected, and AOO should list the JRE in the Options dialog.

>(And where are the builds?).

IIRC you are a Windows guy, so you can try the Windowos builds from http://people.apache.org/~arielch/packages/


For LINUX users: 
* AOO sould detect automatically JREs installed on default system locations.
* you should be able to select any folder containing a valid JRE on any location and AOO should detect it. For example, in /opt/jdk1.7.0_02
Comment 10 Olaf Felka 2012-01-13 13:15:03 UTC
As described, I've downloaded AOO from http://people.apache.org/~arielch/packages/. I've installed JRE 1.6.0_30, JRE 1.7.0_02 and JDK 1.7.0_02. In Tools Options all JREs and JDK will be detected.
A quick test if all runtimes will be supported: Go 'File | Wizards | Webpage'. The webpage wizard won't open with JRE/JDK 1.7.0. The wizard works as expected wit JRE 1.6.0.
We should not detect 1.7.0 if it's not supported.
Comment 11 r4zoli 2012-01-13 18:19:46 UTC
Under win7 in version http://people.apache.org/~orw/DevSnapshots-Rev.1229535/win32/OOo-Dev_OOO340m1_Win_x86_install_en-US.exe 
When I start the Webpage Wizard:
I get 

Debug Output
---------------------------
Error: SfxHTMLParser::SfxHTMLParser: Wo kommt der ZS her?
From File c:/AOO/sources/firsttasks/main/sfx2/source/bastyp/sfxhtml.cxx
at Line 79
Abort ? (Yes=abort / No=ignore / Cancel=core dump)

Click no, then second debug error:
---------------------------
Debug Output
---------------------------
Error: Don't close the medium when loading documents!
From File c:/AOO/sources/firsttasks/main/sfx2/source/doc/objmisc.cxx at
Line 1444
Abort ? (Yes=abort / No=ignore / Cancel=core dump)

Click No, and the wizard starts.

May be the version builded with debug enabled?
Comment 12 Ariel Constenla-Haile 2012-01-13 21:04:07 UTC
Created attachment 77129 [details]
File | Wizards | Webpage working with JRE/JDK 7
Comment 13 Ariel Constenla-Haile 2012-01-13 21:09:18 UTC
(In reply to comment #10)
> As described, I've downloaded AOO from
> http://people.apache.org/~arielch/packages/. I've installed JRE 1.6.0_30, JRE
> 1.7.0_02 and JDK 1.7.0_02. In Tools Options all JREs and JDK will be detected.
> A quick test if all runtimes will be supported: Go 'File | Wizards | Webpage'.
> The webpage wizard won't open with JRE/JDK 1.7.0. 

Tested on WinXP and Windows 7, with JRE and JDK 7 (all 32 bits), that wizard works for me. 

> The wizard works as expected
> wit JRE 1.6.0.
> We should not detect 1.7.0 if it's not supported.

This is true. But it is another issue.
We have to split:

a) this issue, detect JRE 7.0 version
b) issues with things that don't work with JRE 7

I will resolve (a) as fixed: JRE is detected.
For (b), please open new bug reports of the kind "[java 7] XXX does not work ..."
Comment 14 Ariel Constenla-Haile 2012-01-13 21:10:32 UTC
Resolved as FIXED.
Java 7 is now detected.
Comment 15 Olaf Felka 2012-01-14 08:36:31 UTC
For this are two sides of one medal. Displaying Java 7 without supporting it is meaningless. It has to be fixed in one go.
Comment 16 Ariel Constenla-Haile 2012-01-14 08:51:30 UTC
(In reply to comment #15)
> For this are two sides of one medal. Displaying Java 7 without supporting it is
> meaningless. It has to be fixed in one go.

This is why bugzilla has a "Blocks" field: bugs reporting some feature not working with Java 7 should block this bug.

Where "block" means that this feature won't be integrated in a final release until those blocker issues are fixed.
Comment 17 Ariel Constenla-Haile 2012-01-14 09:36:43 UTC
Created attachment 77130 [details]
Web Wizard working with JRE/JDK7 on Windows 7 (64 bits system, AOO 32 bits, Java 32 bits)
Comment 18 Ariel Constenla-Haile 2012-01-28 13:57:18 UTC
Revision 1229371
Comment 19 Oliver-Rainer Wittmann 2012-06-13 12:27:37 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 20 louqle 2012-06-19 02:24:35 UTC
java 7 works on my Windows 7, it can be detected and appears in the dialog Tools - Options - OpenOffice.org - Java.

File->Wizards->web page also works
Comment 21 Olaf Felka 2012-06-19 05:48:07 UTC
There seems to be a problem in AOO: https://issues.apache.org/ooo/show_bug.cgi?id=119525
Comment 22 Ariel Constenla-Haile 2012-06-19 06:01:46 UTC
(In reply to comment #21)
> There seems to be a problem in AOO:
> https://issues.apache.org/ooo/show_bug.cgi?id=119525

Both Bug 119525 and Bug 119993 cannot be reproduced, at least not by me, so for me they are unconfirmed.