X11 error: Can't open display

Imagen de absalon

Forums: 

Saludos Cordiales.
Estoy utilizando la libreria JODConverter
Al realizar el siguiente ejemplo:

[root@server ~]# java -jar jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar -f pdf prueba.doc

Aparece este error:

Aug 3, 2010 7:12:56 AM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection connect
INFO: connected
Aug 3, 2010 7:12:56 AM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection disposing
INFO: disconnected
Exception in thread "main" com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed: could not load input document
at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport(OpenOfficeDocumentConverter.java:134)
at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:120)
at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:104)
at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:74)
at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:70)
at com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertDocument.java:154)
at com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocument.java:139)

y al ejecutar por linea de comandos openoffice aparece el siguiente error:

/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: localhost:0.0
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)

Gracias por su ayuda

tienes x11 arriba ...???

Imagen de deathUser

tienes x11 arriba ...??? necesitas headless ...??? si tienes x11 arriba pero estás ejecutando con otro usuario el comando prueba con xhost +, en tal caso RTFMs y STFW ...

bye
;)