11.19.2006

Freemind in Ubuntu 6.10

So I'm installing Freemind on Ubuntu and it isn't perfect, but easy enough. Thought I would just make a quick mention on how I did it. Installing Java seems easier than previous versions of Ubuntu. Just go to Add/Remove in the main menu, search for "sun java" and install what you like.

To get Freemind to work, download the deb package and the libforms deb package. Install them with "dpkg -i pkg-name". I also got an error when I tried to run it:

123@123:~/dl$ freemind
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(libgcj.so.70)
at java.awt.Window.(libgcj.so.70)
at java.awt.Frame.(libgcj.so.70)
at javax.swing.JFrame.(libgcj.so.70)
at freemind.main.FreeMind.(FreeMind.java:107)
at freemind.main.FreeMind.main(FreeMind.java:647)
Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory
at java.lang.Runtime._load(libgcj.so.70)
at java.lang.Runtime.loadLibrary(libgcj.so.70)
at java.lang.System.loadLibrary(libgcj.so.70)
at gnu.java.awt.peer.gtk.GtkToolkit.(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
...6 more


So at this site I found the solution in a comment. Run "sudo update-alternatives --config java" and choose "/usr/lib/jvm/java-1.5.0-sun/jre/bin/java". Easy as that.

submit to: del.icio.us | Digg | reddit

0 Comments:

Post a Comment

<< Home