Public bug reported:

If you are using OpenJDK instead of Sun’s Java the startup script of Freecol 
does not work correctly.
It is checking for the JAVA_HOME environment and if it doesn’t find one, sets 
it to a value for iced-tea or Sun’s Java respectively. This does not work with 
OpenJDK.

I found out, that the program doesn’t need the environment variable.
Deleting the following lines from /usr/games/freecol fixes the problem
for me.

if [ -z "$JAVA_HOME" ]
then
    if [ -d /usr/lib/jvm/java-7-icedtea/jre ]; then
        JAVA_HOME=/usr/lib/jvm/java-7-icedtea
        JAVA=java
    else                                # We use java6 from Sun
        JAVA_HOME=/usr/lib/jvm/java-6-sun 
        JAVA=${JAVA_HOME}/jre/bin/java
    fi
fi

** Affects: freecol (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Freecol does not work work with openjdk
https://bugs.launchpad.net/bugs/229032
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to