Josu
March 12, 2012, 1:07pm
1
Hello all.
I have a running Openfire server on a Ubuntu 10.04 LTS. I must change the Java JRE version because there are some bug and there is no more Ubuntu security updates on the Ubuntu JRE packages: https://lists.ubuntu.com/archives/ubuntu-security-announce/2012-January/001554.h tml
So I remove all Ubuntu Java software and install the last one from Oracle: http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jre-6u31-linux-x64.bin
Now this is my Java version:
java -version
java version “1.6.0_31”
Java™ SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot™ 64-Bit Server VM (build 20.6-b01, mixed mode)
The problem is that now the Openfire service doesn’t start.
I try to reinstall the package and I have a dependency error:
dpkg -i openfire_3.7.1_all.deb
dpkg: regarding openfire_3.7.1_all.deb containing openfire, pre-dependency problem:
openfire pre-depends on sun-java5-jre | sun-java6-jre | default-jre-headless
sun-java5-jre is not installed.
sun-java6-jre is not installed but configs remain.
default-jre-headless is not installed.
dpkg: error processing openfire_3.7.1_all.deb (–install):
pre-dependency problem - not installing openfire
Errors were encountered while processing:
openfire_3.7.1_all.deb
How could I install Openfire with a manually installed Java?
Thanks and best regards.
1 Like
SysOCA
March 29, 2012, 6:31pm
2
Hello Josu,
Have you been able to solve this problem?
I have the same one and I’m looking for a solution!
Thanks!
You can set JAVA_HOME to point to your install, or alter the startup script **openfire.sh **to use your jre install.
Josu
March 30, 2012, 7:25am
4
I make this steps:
cd /usr/lib/jvm/
sudo wget http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jre-6u31-linux-x64.bin
sudo chmod +x jre-6u31-linux-x64.bin
sudo ./jre-6u31-linux-x64.bin
sudo mv jre1.6.0_31 java-6-sun-1.6.0.31
sudo rm java-6-sun
sudo ln -s java-6-sun-1.6.0.31 java-6-sun
And it is working, I don’t know what happens with I new install, because it has dependencie problems.
Regards.
SysOCA
March 30, 2012, 3:14pm
5
Thanks rcollier and Josu for your help,
I solved the problem by following these steps:
first install java using the oracle script, then follow the steps from help.ubuntu.com (Manual method for JRE) → https://help.ubuntu.com/community/Java#Manual_method
force the install of Openfire → sudo dpkg --force-all -i openfire_X.x.x_all.deb
edit the file /etc/init.d/openfire and add the home directory for my java version (***/usr/lib/jvm/jre1.6.0_31/*** in my case) after the line: t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t the new line should look like this:*** t=/usr/lib/jvm/jre1.6.0_31 && test -d $t && JAVA_HOME=$t***
start openfire service by doing /etc/init.d/openfire start
That’s all
Best Regards!