cancel
Showing results for 
Search instead for 
Did you mean: 

javaldx: Could not find a Java Runtime Environment!

chelvetique
Champ in-the-making
Champ in-the-making
Hello.

Everything (not really) is in the title.

Sorry by advance because i have the same post in the French forum, but i didn't have the solution (maybe here).

I made a tutorial in French at this locationhttp://forum.alfresco-fr.org/viewtopic.php?f=6&t=1550 for installing Alfresco 2.1.0 with Ubuntu 7.10 (Alternate). Now it try to install Alfresco with this tutorial but with Ubuntu 8.0.4.

When i run
./alfresco.sh start
i've got this message
root@xxx:/opt/alfresco# ./alfresco.sh start
Using CATALINA_BASE: /opt/alfresco/tomcat
Using CATALINA_HOME: /opt/alfresco/tomcat
Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun/jre/
Starting OpenOffice service…
root@xxx:/opt/alfresco# javaldx: Could not find a Java Runtime Environment!


After different test, I i'm nearly sur the problem is with OpenOffice. Have you an idea with my problem ?

My configuration with OpenOffice is :

#!/bin/sh
# —————————————————————————
# Start script for the OpenOffice transform service
# —————————————————————————

echo "Starting OpenOffice service…"

# Comment or uncomment the appropriate location using #
# Assumes OpenOffice is installed in /opt
/usr/bin/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &

# If NeoOffice on Mac OS X
#/Applications/NeoOfficeJ.app/Contents/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &

Thank you by advance.

ChelvEtique.
5 REPLIES 5

steve
Champ in-the-making
Champ in-the-making
Hi,

Your problem is probably this:
Using JRE_HOME: /usr/lib/jvm/java-6-sun/jre/

You need to use the JDK, not the JRE.

Steve

ranktyro
Champ in-the-making
Champ in-the-making
I am also getting the
Starting Alfresco …
Using CATALINA_BASE:   /opt/alfresco/tomcat
Using CATALINA_HOME:   /opt/alfresco/tomcat
Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java-6-sun
xxx@yyy:/$ javaldx: Could not find a Java Runtime Environment!
error. I see your statement that it should be using the JDK instead of the JRE, but I do not know how to resolve that. I'm not familiar with app servers, so I need to be talked down to a little while I learn.

I followed the Ubuntu 7.10 installation instructions and installed sun-java6-jdk (which included the jre and bin).

What am I missing?

jhwilliams
Champ in-the-making
Champ in-the-making
On Ubuntu 8.10, I was receiving this message because I was missing the openoffice.org-java-common package. Hope this helps.

pim
Champ in-the-making
Champ in-the-making
It does help for me… thanks!

steve
Champ in-the-making
Champ in-the-making
Hi,

That is not the safest way to get Java - you are only using the bundled Java included within Openoffice, not the proper most up to date package from Sun.

Take a look here for one resource on how to install:
http://www.wikihow.com/Install-Java-on-Linux

Steve