Improve linux init script to work with Ubuntu 10.04
At Ubuntu 10.04 (Lucid lynx) there changes in java engine.. Openfire's initscript checks for /usr/lib/jvm/java-1.5.0-sun and 6.0 variant, but ubuntu uses /usr/lib/jvm/default-java..
So I made this type of modification in /etc/init.d/openfire to make openfire to work:
if [ -z $JAVA_HOME ]
t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/default-java && test -d $t && JAVA_HOME=$t
Closing as incomplete as hopefully this is no longer an issue with current release and Ubuntu. We can reopen, if it is still a problem.
Anybody comment on any current issues with Ubuntu?
This bug is still having even if the newer version 3.8.2 improved the init.d script but not enough. Now it has a list of possible locations on Java (JAVA_HOMES) but the list is missing the default locaiton of Java 7: /usr/lib/jvm/java-7-oracle (the scripts contains /usr/lib/jvm/java-7-sun which is and old version not used anymore).
BTW, someone should correct the title, this can be reproduced on any Unix system not only Ubuntu 10.04.
Removing the 'fix version' for all unresolved issues that were scheduled for version 7.8.2. We're releasing this version today - the remaining issues should be rescheduled later.
this may be openJDK and it seems that this can cause trouble: http://www.igniterealtime.org/community/thread/41802
So one may want to test openJDK first before supporting it. Maybe some com.sun. classes are missing.