Comment 8 for bug 908679

Revision history for this message
MankyGitt (dnadruff) wrote :

For Freemind:
I solved this as follows:

ENVIRONMENT: Ubuntu 12.04.3 (clean installation)
java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Freemind installed via the Ubuntu Software Centre - the supported package.

in the terminal:
$ sudo nano /usr/bin/freemind

in the section:
#--------- Put the environment together --------------------------------
replace the reference to java-wrappers.sh as follows: (I have commented out the original line (x2) and followed with the correct path for this installation environment.
# if [ -r /usr/lib/java-wrappers/java-wrappers.sh ]
if [ -r /usr/lib/java-wrappers.sh ]
then # the Debian method
# . /usr/lib/java-wrappers/java-wrappers.sh
       . /usr/lib/java-wrappers.sh
        require_java_runtime java6
else
        findjava
        if [ $? -ne 0 ]
        then
                exit 1
        fi
fi
--------------end of sample --------------

It appears that the location of java-wrappers.sh has changed in more recent releases.

Freemind now launches as intended.
The same fix will resolve the freeplane issue.
The other way to solve this (but I think it is messy) is to create the path
/usr/lib/java-wrappers/
and place a symbolic link to /usr/lib/java-wrappers.sh into this directory.

This would perhaps address issues if you have multiple applications that look for the old path.