Comment 7 for bug 296880

Revision history for this message
fiXedd (jeremy-logan) wrote :

Implementing John's proposed fix would have been ideal. However, what happened was that it was made to depend on one of "openjdk-6-jre | sun-java5-jre | sun-java6-jre" where as the script will only actually allow one of those to work. Even something like the following would be better (though still not ideal since it doesn't respect preferences):

if [ -f /usr/lib/jvm/java-6-openjdk/jre/bin/java ]; then
 JAVA='/usr/lib/jvm/java-6-openjdk/jre/bin/java -Xmx1024M'
else
 if [ -f /usr/lib/jvm/java-6-sun/jre/bin/java ]; then
  JAVA='/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024M'
 else
  JAVA='/usr/bin/java -Xmx1024M'
 fi
fi