git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
19 lines
598 B
Java
19 lines
598 B
Java
import java.io.*;
|
|
import java.lang.System;
|
|
import java.util.Properties;
|
|
|
|
public class openOffice {
|
|
|
|
public static void main(String args[]) throws Exception {
|
|
String openoffice = args[0];
|
|
try {
|
|
// Execute a command without arguments
|
|
String command = ""+openoffice+" -nofirststartwizard -nologo -headless -accept=\"socket,host=localhost,port=8100;urp;StarOffice.ServiceManager\"";
|
|
Process child = Runtime.getRuntime().exec(command);
|
|
System.out.println(command);
|
|
} catch (IOException e) {
|
|
System.err.println("Error: " + e.getMessage());
|
|
}
|
|
}
|
|
}
|