AnsweredAssumed Answered

Solving the OpenOffice no language error

Question asked by pitonyak on Nov 14, 2008
Latest reply on Nov 21, 2008 by beren (OOo) was already installed on my computer, so I chose to use the already installed copy. While starting the Alfresco server, OOo refused to start and complained that
The application cannot be started. The user interface language cannot be determined.

I found the following file:
The file contains the following line:
<value><![CDATA["C:/Program Files/ 3/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///C:Program Files/ 3/program/soffice" -nologo -headless -nofirststartwizard -nocrashrep -norestore]]></value>[/quote]
This runs the program "C:/Program Files/ 3/program/soffice", which is the primary OOo executable.
The next portion tells OOo to listen on port 8100 so that it can be controlled (it will only accept connections from localhost as started, by the way).
The arguments tell OOo (-nologo) do not display the OOo logo, (-headless) do not display a user interface (-nofirststartwizard) do not display a user configuration wizard even if this is the first time that OOo has run, (-nocrashrep) do not generate a crash report for Sun if there is an error, and (-norestore) do not attempt to recover files if OOo crashed last time it was used.
This leaves the final argument (-env:UserInstallation), which instructs OOo which user configuration files to use. This allows for multiple users to run at the same time without interfering with each other. I expected OOo to create a user directory at the specified location, not that it makes sense to add user files in the Program Files directory, but it is what I expected to happen. My assumption is that it did not have the proper permissions to do this. To solve this problem, I created a directory C:\Alfresco\OOo, and then pointed to this directory.
<value><![CDATA["C:/Program Files/ 3/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///C:/alfresco/OOo" -nologo -headless -nofirststartwizard -nocrashrep -norestore]]></value>[/quote]
This works with no problems. A user directory was automatically created by OOo on startup, and life is good (at least from the OOo standpoint).
If this does not solve your problem, check to make certain that you have the proper permissions (so that OOo can read, write, and create things in the specified directories).