OpenOffice3.3 cannot be converted to pdf in Linux

Source: Internet
Author: User
1. test whether the local OpenOffice service can be started: Enter the following command in the command line: openoffice installation directory soffice-headle-accept = & quot; socket, host = localhost, port = 8100; urp; & quot;-nofirststartwizard & amp; if an error occurs

1. test whether the local OpenOffice service can be started

Method: Enter the following command in the command line:

/Openoffice installation directory/soffice-headle-accept = "socket, host = localhost, port = 8100; urp;"-nofirststartwizard &

If an error occurs, the startup fails or OpenOffice is not installed.

If it succeeds, the following similar content will appear:

[1] 2342

This information indicates the process number that starts the service, that is, the pid.

2. if the java code is used to start the service, the connect method may be called because the port listener has not been set up, resulting in an error in the background: The service is not started, note that two parameters need to be added during command execution, as shown below:

Runtime.getruntime(cmd.exe c ("/bin/sh", "-c", "/openoffice installation directory/soffice-headle-accept =" socket, host = localhost, port = 8100; urp; "-nofirststartwizard ");

The first two parameters are specific in Linux.

After executing this command, a service process starts.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.