Openfire on OpenJDK (Ubuntu Hardy Heron)

Hi,

what’s the status of supporting OpenJDK?

I’ve just tried to install Openfire from deb on Hardy with OpenJDK but to no avail since it requires Sun JDK:

root@host:/downloads# dpkg -i openfire_3.5.2_all.deb
Selecting previously deselected package openfire.
dpkg: regarding openfire_3.5.2_all.deb containing openfire, pre-dependency problem:
openfire pre-depends on sun-java5-jre | sun-java6-jre
sun-java5-jre is not installed.
sun-java6-jre is not installed.
dpkg: error processing openfire_3.5.2_all.deb (–install):
pre-dependency problem - not installing openfire
Errors were encountered while processing:
openfire_3.5.2_all.deb

Hey rtomanek,

I haven’t tried using OpenJDK with Openfire. Anyway, you seem to be running into a dependency problem with the .deb package. A temporary workaround is to download the .zip boundle and run it with OpenJDK. As long as OpenJDK is compatible with SUN’s JRE or Apple’s JRE you should be fine. Let us know if it worked fine and we can see how to make the dependencies work with OpenJDK.

Thanks,

– Gato

I wanted to avoid installing from anything but .deb to keep my system clean so I chose to modify the package you provide to accept OpenJDK JREs ( openjdk-6-jre-headless and openjdk-6-jre ) by modifying dependencies and the startup script.

So far, it works fine for me.

This dependency problem can be avoided by having the debs depend on “java5-runtime” or “java6-runtime” instead of a specific JRE, and then “Recommend” the sun JRE, or otherwise make it clear that only Sun’s JRE is supported. I can understand how that could be a hassle for the mainainer, though, if the sun-java?-jre is a truly required dependency.

Should it be useful, though, some reference info.

The Ubuntu Hardy sun-java6-jre package, as well as the Debian Etch sub-java6-jre provides the following virtual packages:

java-runtime
java-runtime-headless
java-virtual-machine
java2-runtime
java2-runtime-headless
java5-runtime
java5-runtime-headless
java6-runtime
java6-runtime-headless

The Ubuntu Hardy openjdk6-jre-headless package provides the following virtual packages:

java-virtual-machine

java-runtime-headless

java2-runtime-headless

java5-runtime-headless

java6-runtime-headless

The Ubuntu Hardy openjdk6-jre package provides the following virtual packages:

java-runtime

java2-runtime

java5-runtime

java6-runtime

The Ubuntu Hardy sun-java5-jre package, as well as the Debian Etch sun-java5-jre package provide the following virtual packages:

java-virtual-machine
java-runtime
java2-runtime
java5-runtime
java-runtime-headless
java2-runtime-headless
java5-runtime-headless

Hopefully this is useful.

Hi rtomanek,

I ran into the same issue when I wanted to install Openfire 3.6.4.

I’m also running Debian 5 Lenny with OpenJDK.

As I also want to keep my system clean, could you post how you

changed the dependencies and startup script to install the Debian

package with OpenJDK?

Thanks in advance,

mrQ