OpenOffice on Windows 7 with Java

Issues with installing under all versions of MS Windows
Post Reply
cxo
Posts: 7
Joined: Thu Feb 25, 2021 9:41 am

OpenOffice on Windows 7 with Java

Post by cxo »

Dear friends, I could cry, and maybe you have an idea...

I have Windows 7 SP1 PC, it works well. Yesterday I installed OO 4.1.9, mainly to use Calc. It is important that I can save Calc files as Excel 2003 XML because I have to share the files with people who use modern Excel version.

It did not work from scratch, so I installed Java, first 64 bit then after reading more Java 32bit, and then I rebooted. Java is shown in the Java settings in Openoffice.
Bild_2021-02-25_090743.png
But when I save the file as Excel 2003 XML it takes a long time, and then I get an error message.
Bild_2021-02-25_090855.png
Bild_2021-02-25_090855.png (84.28 KiB) Viewed 5752 times
So officially everything is fine but still it does not work.

What can I do?
Windows 7 sp1, OpenOffice 4.3.1
User avatar
robleyd
Moderator
Posts: 5086
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Openoffice on Windows 7 with Java

Post by robleyd »

The error message is in a language that I don't generally understand and I am not prepared to manually type it into google translate; I think it says something about writing/saving?. If so, it is possible that Windows Defender, or your antivirus, may be blocking you from saving in a particular folder(s).
Windows 7 sp1, OpenOffice 4.3.1
I assume you mean AOO 4.1.3 as the quoted version does not exist.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
cxo
Posts: 7
Joined: Thu Feb 25, 2021 9:41 am

Re: Openoffice on Windows 7 with Java

Post by cxo »

Yes, you are right with the version.

The error message says "Error while saving. The file could not be saved." This happens no matter where I save - hard disk, network volume, USB stick. It only happens when I save as Excel 2003 XML. Ohter formats work fine.
Windows 7 sp1, OpenOffice 4.3.1
User avatar
robleyd
Moderator
Posts: 5086
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Openoffice on Windows 7 with Java

Post by robleyd »

If you save to the Desktop, do you still get the error?
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice on Windows 7 with Java

Post by RoryOF »

"The file could not be saved" message often indicates that Windows Defender or some other program, perhaps an antivirus, is not permitting Saving to the target folder. As robleyd suggests, try Saving to your desktop. If that works, then the problem is confirmed to be a file permissions problem.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: OpenOffice on Windows 7 with Java

Post by Villeroy »

Since 10 years https://www.libreoffice.org/discover/li ... penoffice/ is the "new" OpenOffice. It supports OOXML (docx/xlsx) file formats. Forget OpenOffice. Forget Java.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
cxo
Posts: 7
Joined: Thu Feb 25, 2021 9:41 am

Re: Openoffice on Windows 7 with Java

Post by cxo »

robleyd wrote:If you save to the Desktop, do you still get the error?
Yes. It always happens when I save as XML, no matter where I save.

It never happens with other formats.

Apropos Libreoffice: I installed that first. I restarted. Launch Writer. Crash. Launch Calc. Crash. Launch anything else. Crash. I deinstalled it right away and installed OpenOffice. Maybe this is the source of all this trouble?
Windows 7 sp1, OpenOffice 4.3.1
NZ_LinuxStudent
Posts: 14
Joined: Tue Feb 23, 2021 1:10 am
Location: New Zealand

Re: OpenOffice on Windows 7 with Java

Post by NZ_LinuxStudent »

German -> English
Translation
Failed to save the document 201130_residentialareadetermination: Typo. The file could not be written.

Does the file name include ":", as I do not think this is allowed in Windows. <>:"/\|?* are all forbidden in filenames (https://docs.microsoft.com/en-us/window ... ing-a-file).

Are you using https://sourceforge.net/projects/openof ... e/download ?
Are you using the 32-bit Java https://www.java.com/de/ ?

Possible Solutions;
Remove all Java versions -> https://java.com/de/download/help/remov ... sions.html
Install 32-bit Java -> https://javadl.oracle.com/webapps/downl ... 7658ca1605
You may need to restart your Windows Computer.

Try to Save your .xml file in ApacheOpenOffice, does this work?

Try Reseting your User Profile -> viewtopic.php?p=58403#p58403. Does this work?

Uninstall ApacheOpenOffice, and reinstall (https://sourceforge.net/projects/openof ... e/download)
Does it work now?

Did you reset your user profile?
Hopefully this helped you, otherwise let us know.

If all working, make sure to install the 64-bit JRE for your other Windows applications. JRE 64-bit https://javadl.oracle.com/webapps/downl ... 7658ca1605

Hopefully you still have everything working :)

There also seems to be a forum listed at https://www.openoffice-forum.de/, perhaps this also could be of some use?
 Edit:  Here is a page of all links, https://www.openoffice.org/de/foren.html

Finally, you could try this possible solution.
Instead of saving your document as "Microsoft Excel 2003 XML (.xml)" could you please save it as "Microsoft Excel 97/2000/XP (.xls)" and see whether the issue still arises.

As a side note; Microsoft users should be able to open ODS files, but I understand why you would want to do the conversion at your end, to prevent confusion. You could also consider exporting your documents to PDF so they can be accessed across the majority of devices available to end consumers.
 Edit:  You could potentially try using OpenJDK instead of the original Java. "OpenJDK is a free and open-source implementation of the Java Platform, Standard Edition". Try from here OpenJDK JRE 8u272-b10 https://builds.openlogic.com/downloadJD ... ws-x32.msi , or to view all available https://www.openlogic.com/openjdk-downl ... get_id=All , but JRE 8u272-b10 should be right for your system :) 
 
Last edited by NZ_LinuxStudent on Sun Feb 28, 2021 4:05 am, edited 7 times in total.
OpenOffice 4.5.0 on LMDE 4 Debbie
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: OpenOffice on Windows 7 with Java

Post by John_Ha »

As you can save your file fred in other formats (eg as fred.ods) it isn't a file writing permissions thing.

It looks like a bug. I tried saving this trivial file test.odt. The save took about a minute and I then got an error message.
Clipboard01.png
Search the forum with save excel 2003 xml for more.

Look at the date 2003 - that is 18 years old. Is the format obsolete? Can it handle function added after 2003? In principle I guess it should as XML is extensible and new tags can be added at any time. However you and your colleagues may be better choosing a different format.

wiki says it was made obsolete in 2007, fourteen years ago so don't hold you breath for any bug fixes.
The Microsoft Office XML formats are XML-based document formats (or XML schemas) introduced in versions of Microsoft Office prior to Office 2007. Microsoft Office XP introduced a new XML format for storing Excel spreadsheets and Office 2003 added an XML-based format for Word documents.

These formats were succeeded by Office Open XML (ECMA-376) in Microsoft Office 2007.
See [Tutorial] Differences between Writer and MS Word files for a discussion of some of the issues involved. It applies even more so to spreadsheet files.

LibreOffice does not offer Excel 2003 XML as an option.
Attachments
test.ods
(10.48 KiB) Downloaded 214 times
Last edited by John_Ha on Sun Feb 28, 2021 2:03 am, edited 2 times in total.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
NZ_LinuxStudent
Posts: 14
Joined: Tue Feb 23, 2021 1:10 am
Location: New Zealand

Re: OpenOffice on Windows 7 with Java

Post by NZ_LinuxStudent »

Have managed to replicate the above OpenOffice Calc document, and saved successfully in "Microsoft Excel 2003 XML (.xml)" format, without any error.

Test system (Linux) LMDE 4 Debbie using AOO 4.5.0, and system uses "OpenJDK 11.0.9.1" (java-11-openjdk-amd64).
OpenOffice 4.5.0 on LMDE 4 Debbie
User avatar
Hagar Delest
Moderator
Posts: 32664
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OpenOffice on Windows 7 with Java

Post by Hagar Delest »

cxo wrote:It is important that I can save Calc files as Excel 2003 XML because I have to share the files with people who use modern Excel version.
Then either do as advised earlier, that is try LibreOffice, or just stick to MS Excel. That's part of the vendor lock-in policy.
As long as users don't understand the point in using open formats, then you'll have to stick to whatever proprietary application you use.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: OpenOffice on Windows 7 with Java

Post by Villeroy »

It is an error in the AOO installer for MS Windows. By default the XML filters are not installed. Run the installer and select the missing package. I agree that a historic file formats can not be the solution. EIther you use MS Office for MS Office file formats or you install a recent office suite with a decent support of these crude formats. You never get 100% support for foreign file formats. Since too many years AOO lies in agony.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
cxo
Posts: 7
Joined: Thu Feb 25, 2021 9:41 am

Re: OpenOffice on Windows 7 with Java

Post by cxo »

NZ_LinuxStudent wrote:Does the file name include ":", as I do not think this is allowed in Windows. <>:"/\|?* are all forbidden in filenames (https://docs.microsoft.com/en-us/window ... ing-a-file).
There are no forbidden characters in my file name.
NZ_LinuxStudent wrote:Are you using https://sourceforge.net/projects/openof ... e/download ?
Are you using the 32-bit Java https://www.java.com/de/ ?
Yes and yes.
NZ_LinuxStudent wrote:Possible Solutions;
Remove all Java versions -> https://java.com/de/download/help/remov ... sions.html
Install 32-bit Java -> https://javadl.oracle.com/webapps/downl ... 7658ca1605
You may need to restart your Windows Computer.

Try to Save your .xml file in ApacheOpenOffice, does this work?

Try Reseting your User Profile -> viewtopic.php?p=58403#p58403. Does this work?

Uninstall ApacheOpenOffice, and reinstall (https://sourceforge.net/projects/openof ... e/download)
Does it work now?

Did you reset your user profile?
Hopefully this helped you, otherwise let us know.
I did all of that in this order. Nothing changed except the error message:
seek.PNG
seek.PNG (8.36 KiB) Viewed 5519 times
"The seek operation could not be executed."
NZ_LinuxStudent wrote:There also seems to be a forum listed at https://www.openoffice-forum.de/, perhaps this also could be of some use?
 Edit:  Here is a page of all links, https://www.openoffice.org/de/foren.html 
I asked there first - no answer at all.
NZ_LinuxStudent wrote:Finally, you could try this possible solution.
Instead of saving your document as "Microsoft Excel 2003 XML (.xml)" could you please save it as "Microsoft Excel 97/2000/XP (.xls)" and see whether the issue still arises.
That works.
Windows 7 sp1, OpenOffice 4.3.1
cxo
Posts: 7
Joined: Thu Feb 25, 2021 9:41 am

Re: OpenOffice on Windows 7 with Java

Post by cxo »

Hagar Delest wrote:
cxo wrote:It is important that I can save Calc files as Excel 2003 XML because I have to share the files with people who use modern Excel version.
Then either do as advised earlier, that is try LibreOffice, or just stick to MS Excel. That's part of the vendor lock-in policy.
As long as users don't understand the point in using open formats, then you'll have to stick to whatever proprietary application you use.
#1: I tried to install Libreoffice and can't even launch it. It does not work *at all*. :crazy:

#2 I guarantee I will never in my life buy anything made by Microsoft again. :fist:
Windows 7 sp1, OpenOffice 4.3.1
cxo
Posts: 7
Joined: Thu Feb 25, 2021 9:41 am

Re: OpenOffice on Windows 7 with Java

Post by cxo »

John_Ha wrote:It looks like a bug. I tried saving this trivial file test.odt. The save took about a minute and I then got an error message.
This is exactly what happens here. First success: we can say that we can replicate the problem. :bravo:
Windows 7 sp1, OpenOffice 4.3.1
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: OpenOffice on Windows 7 with Java

Post by John_Ha »

I now see it is not bug and, having had my memory jogged, remember a similar thread some time ago.

See
Villeroy wrote:It is an error in the AOO installer for MS Windows. By default the XML filters are not installed. Run the installer [using Customised installation] and select the missing [Excel 2003 XML] package.
But you should stop using an obsolete format.

Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject. It would also help if you edited your Subject line to Cannot save in Excel 2003 XML format as the problem has nothing to do with Java.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
cxo
Posts: 7
Joined: Thu Feb 25, 2021 9:41 am

Re: OpenOffice on Windows 7 with Java

Post by cxo »

Just asking: the standard file format for Excel 2016 is xslx, right? Openoffice can not write xlsx files, is that right, too?
Windows 7 sp1, OpenOffice 4.3.1
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: OpenOffice on Windows 7 with Java

Post by John_Ha »

Yes and yes.

Read [Tutorial] Differences between Writer and MS Word files for a discussion of the problems you will encounter (It discusses Calc / Excel files too) and for why you should always work in, and save Writer files as .odt, Calc files as .ods, Impress files as .odp etc.
Attachments
Differences between files.png
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice on Windows 7 with Java

Post by RoryOF »

.xlsx is the current file format used by Microsoft Excel; at present OpenOffice cannot write to it, and may have difficulty reading some files in that format. LibreOffice offers better support for that proprietary format, but if you must have absolute recognition of all files written by and edited by MS Excel, you are best advised to use MS Excel.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: OpenOffice on Windows 7 with Java

Post by Villeroy »

A simple spreadsheet like the one in the screenshot can be saved in the binary xls format (Excel 97-2003). No special extensions nor Java required. Every spreadsheet application can load simple xls.

"Simple" means:
- no strings that are meant to be numbers nor numbers that are meant to be strings
- no formatting stunts nor sophisticated layouts. xls supports cell styles.
- basic arithmetics and standard functions, i.e. no add-in functions

btw: LibreOffice 7 runs just fine on our last remaining Windows 7 box.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
NZ_LinuxStudent
Posts: 14
Joined: Tue Feb 23, 2021 1:10 am
Location: New Zealand

Re: OpenOffice on Windows 7 with Java

Post by NZ_LinuxStudent »

Dear OP and John Ha,

The issue here is with your system. See attached files;
Attachments
TEST (advanced).xml
(4.3 KiB) Downloaded 185 times
TEST (advanced).ods
(8.63 KiB) Downloaded 170 times
TEST (basic).ods
(8.33 KiB) Downloaded 180 times
OpenOffice 4.5.0 on LMDE 4 Debbie
NZ_LinuxStudent
Posts: 14
Joined: Tue Feb 23, 2021 1:10 am
Location: New Zealand

Re: OpenOffice on Windows 7 with Java

Post by NZ_LinuxStudent »

As you are able to see, myself (and others) are able to generate files and save them sucessfully without any issues in the 'Excel 2003 XML (.xml)' format. Although, I cannot with the file 'John Ha' has generated. But I would wager you all can with mine..
OpenOffice 4.5.0 on LMDE 4 Debbie
NZ_LinuxStudent
Posts: 14
Joined: Tue Feb 23, 2021 1:10 am
Location: New Zealand

Re: OpenOffice on Windows 7 with Java

Post by NZ_LinuxStudent »

RoryOF wrote:.xlsx is the current file format used by Microsoft Excel; at present OpenOffice cannot write to it, and may have difficulty reading some files in that format. LibreOffice offers better support for that proprietary format, but if you must have absolute recognition of all files written by and edited by MS Excel, you are best advised to use MS Excel.
Apache OpenOffice can easily read .xlsx files. RoryOF, you are mistaken.

See attached files.

Also, Dear Reader, as you are able to see in the provided link the .ODS extenstion is widely supported across various platforms. https://fileinfo.com/extension/ods
Attachments
Book (ODF Spreadsheet).ods
(11.31 KiB) Downloaded 184 times
Book.xlsx
(8.19 KiB) Downloaded 166 times
OpenOffice 4.5.0 on LMDE 4 Debbie
User avatar
Hagar Delest
Moderator
Posts: 32664
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OpenOffice on Windows 7 with Java

Post by Hagar Delest »

NZ_LinuxStudent wrote:Apache OpenOffice can easily read .xlsx files. RoryOF, you are mistaken.
It was not said that AOO couldn't open .xlsx.
It all depends on the complexity of the .xlsx file.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
robleyd
Moderator
Posts: 5086
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: OpenOffice on Windows 7 with Java

Post by robleyd »

RoryOF wrote:may have difficulty reading some files in that format
There was no mention of AOO not being able to read any .xlsx files. See [Tutorial] Differences between Writer and MS Word files for more information.

If you wish to "try to gently educate the users" (your words) please ensure that you provide complete information.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Post Reply