Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
xxx@xxx:~$ /usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: :99
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.06"
il est néanmoins préférable de configurer soffice en tant que service, et de le démarrer en headless , et le faire écouter sur une socket.Comment configurer soffice pour faire ce que vous dites?
Export Java
Nous devons maintenant créer un lien avec l'emplacement où nous avons installé Java en éditant le fichier ".bashrc".
commande vim ~/.bashrc
Code: Tout sélectionner
root@xxxx:/# vim ~/.bashrc
Je rajoute le commentaire suivants à la fin du texte :
Code: Tout sélectionner
export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/
Après cette modification je fais un redémarrage de ma machine (j'avais eu de problèmes et tout avait été réglé après un redémarrage).
# echo $JAVA_HOME
il n'y a rien.# /etc/init.d/alfresco start
j'obtiens ceci:
Starting OpenOffice service …
Setting up iptables …
Redirecting port 21 to 2021 (tcp)
Redirecting port 445 to 1445 (tcp)
Redirecting port 139 to 1139 (tcp)
Redirecting port 137 to 1137 (udp)
Redirecting port 138 to 1138 (udp)
Starting Alfresco …
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: :99
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
# echo $JAVA_HOME
/usr/lib/jvm/java-6-sun/jre/
C'est à dire le chemin que j'ai entré dans le fichier ~/.bashrc# /etc/init.d/alfresco start
Starting OpenOffice service …
Setting up iptables …
Redirecting port 21 to 2021 (tcp)
Redirecting port 445 to 1445 (tcp)
Redirecting port 139 to 1139 (tcp)
Redirecting port 137 to 1137 (udp)
Redirecting port 138 to 1138 (udp)
Starting Alfresco …
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: :99
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.