As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this programxxx@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.
Export JavaNous devons maintenant créer un lien avec l'emplacement où nous avons installé Java en éditant le fichier ".bashrc".commande vim ~/.bashrcCode: Tout sélectionner root@xxxx:/# vim ~/.bashrcJe 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
# /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)
# echo $JAVA_HOME /usr/lib/jvm/java-6-sun/jre/
# /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)
javaldx: Could not find a Java Runtime Environment
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
/usr/lib/openoffice/program/soffice
/usr/bin/soffice
Si vous voulez limiter les problèmes de variables d'environnement, déclarez JAVA_HOME directement dans les premières lignes de "alfresco.sh". Plus pratique aussi pour faire cohabiter les environnements.
#!/bin/sh # Start or stop Alfresco server # Set the following to where Tomcat is installed APPSERVER=/opt/alfresco/tomcat export JAVA_HOME=/usr/lib/jvm/java-6-sun # Set any default JVM values export JAVA_OPTS='-Xms128m -Xmx512m -server' # Following only needed for Sun JVMs before to 1.5 update 8 export JAVA_OPTS="${JAVA_OPTS} -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl /lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions" # if [ "$1" = "start" ]; then "$APPSERVER"/bin/startup.sh # if [ -r ./virtual_start.sh ]; then # sh ./virtual_start.sh # fi if [ -r ./start_oo.sh ]; then sh ./start_oo.sh fi elif [ "$1" = "stop" ]; then "$APPSERVER"/bin/shutdown.sh # if [ -r ./virtual_start.sh ]; then # sh ./virtual_stop.sh # fi if [ -r ./start_oo.sh ]; then killall soffice.bin fi fi
./alfresco.sh start 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 Starting OpenOffice service… root@xxx:/opt/alfresco# /usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: Set DISPLAY environment variable, use -display option or check permissions of your X-Server (See "man X" resp. "man xhost" for details)
J'ai eu le même probleme que vous, j'ai un peu pret reussi a regler le probleme de JAVA, je suis aussi sur la nouvelle version d'ubuntu. J'arrive à lancer alfresco mais au bout de 5 sec après avoir fait ./alfresco.sh start une erreur java apparait dans ma console.
dpkg-reconfigure xserver-xorg
# dpkg-reconfigure xserver-xorg Package `xserver-xorg' is not installed and no info is available. Use dpkg –info (= dpkg-deb –info) to examine archive files, and dpkg –contents (= dpkg-deb –contents) to list their contents. /usr/sbin/dpkg-reconfigure: xserver-xorg is not installed
/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: Set DISPLAY environment variable, use -display option or check permissions of your X-Server (See "man X" resp. "man xhost" for details)
#sudo -H -u alfresco /opt/alfresco/alfresco.sh start 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
Bonjour,J'essaie d'installer Alfresco en suivant la procédure indiquée ici: http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10L'installation a très bien fonctionnée avec la version ubuntu server 7.10. En revanche avec la nouvelle version d'ubuntu server 8.04, lorsque je souhaite lancer Alfresco avec le script fournit à la fin du document j'obtiens le message suivant:Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this programJ'ai pourtant bien défini la variable $JAVA_HOME dans le fichier /ect/profile comme ceci: export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.06" Alfresco fonctionne-t'il avec cette version de Java? J'image que oui car Alfresco à certifier cette nouvelle version d'ubuntu et donc la version de java…Avez-vous une idée comment résoudre se problème?En vous remerciant.
Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this program
/opt/alfresco/tomcat/bin/setenv.sh