Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-05-2009, 05:27 PM   #1
Registered: Oct 2009
Location: Missouri
Distribution: Ubuntu, Android
Posts: 35
Blog Entries: 1

Rep: Reputation: 16
Defining Java environment variables - getting Freeplane to work

I've been using Freemind for a while, thought I'd try it's fork, Freeplane.
I'm on Debian Lenny. After some messing around, I got Java to go, verified at
But Freeplane does not fire up:
jeffm@jeffm-wks1:~/down/freeplane/freeplane-1.0.33$ ./
ERROR:   Your Java is not a derivative from Sun's code,
         in order to point to such a VM.
         See the manpage of freeplane(1) for details.
Knopflerfish OSGi framework, version 4.1.10
Copyright 2003-2009 Knopflerfish. All Rights Reserved.

See for more information.
Loading xargs file /home/jeffm/down/freeplane/freeplane-1.0.33/props.xargs
Loading xargs file /home/jeffm/down/freeplane/freeplane-1.0.33/init.xargs
Installed and started: reference:file:/home/jeffm/down/freeplane/freeplane-1.0.33/plugins/org.freeplane.plugin.svg (id#1)
Installed and started: reference:file:/home/jeffm/down/freeplane/freeplane-1.0.33/plugins/org.freeplane.plugin.latex (id#2)
Installed and started: reference:file:/home/jeffm/down/freeplane/freeplane-1.0.33/plugins/org.freeplane.plugin.script (id#3)
Installed and started: reference:file:/home/jeffm/down/freeplane/freeplane-1.0.33/plugins/org.freeplane.plugin.bugreport (id#4)
Installed and started: reference:file:/home/jeffm/down/freeplane/freeplane-1.0.33/plugins/org.freeplane.core (id#5)
5-Nov-09 4:19:17 PM org.freeplane.core.util.LogTool info
INFO: freeplane_version = 1.0.33 beta; freeplane_xml_version = 0.9.0
java_version = 1.5.0; os_name = Linux; os_version = 2.6.26-2-686
User properties not found, new file created
5-Nov-09 4:19:17 PM org.freeplane.core.util.LogTool info
INFO: called ResourceController.setResourceController(...)
jeffm@jeffm-wks1:~/down/freeplane/freeplane-1.0.33$ echo $PATH
I've tried messing around with things like 'export JAVA_HOME=/usr/bin/java' for the JAVACMD, JAVA_HOME and the other variables mentioned at the error, but no luck. I think I'm just messing up the export. Any ideas? Thanks for any help.

PS: I thought to read the freeplane manpage like the error said to, but there is none

Last edited by jefm; 11-06-2009 at 08:52 AM.
Old 11-05-2009, 05:43 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
is sun-java6-jre or sun-java5-jre installed? If not, install it.

Then, run
/usr/sbin/update-alternatives --config java
and select a Sun java.
Old 11-06-2009, 11:57 AM   #3
Registered: Oct 2009
Location: Missouri
Distribution: Ubuntu, Android
Posts: 35

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Thanks for the reply. It is basically working now. Glad I didn't mess with export for too long, I was worried since a lot of the help I was finding via Google seemed to be 5=< years old...

Originally Posted by AlucardZero View Post
is sun-java6-jre or sun-java5-jre installed? If not, install it.
jeffm@jeffm-wks1:~$ sudo apt-get install sun-java6-jre -s
Reading package lists... Done
Building dependency tree       
Reading state information... Done
sun-java6-jre is already the newest version.
The following packages were automatically installed and are no longer required:
  gs-esp libavahi-compat-libdnssd1 cups-client openssl-blacklist libslp1 ghostscript-x foomatic-db-engine avahi-utils
  cups-common ssl-cert cups cups-bsd foomatic-filters foomatic-db
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
So that was ok. Not sure why it wants to remove cups, but whatever.

Originally Posted by AlucardZero View Post
Then, run
/usr/sbin/update-alternatives --config java
and select a Sun java.
jeffm@jeffm-wks1:~$ sudo /usr/sbin/update-alternatives --config java

There are 4 alternatives which provide `java'.

  Selection    Alternative
          1    /usr/bin/gij-4.3
 +        2    /usr/lib/jvm/java-gcj/jre/bin/java
*         3    /usr/bin/jamvm
          4    /usr/lib/jvm/java-6-sun/jre/bin/java

Press enter to keep the default[*], or type selection number: 4
Using '/usr/lib/jvm/java-6-sun/jre/bin/java' to provide 'java'.
3 is the default, 4 wound up doing the trick. There are a lot of Java-looking bugs in the app, that could be anything, at least it starts now. Thanks again for the help!


java, variables

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
defining environmental variables? sarayazdani Member Intro 1 08-05-2008 05:08 AM
Need to learn about Java, Tomcat, MySQL and environment variables GOWDASHARATH Linux - Newbie 1 06-23-2008 04:46 AM
Setting environment variables in Java linuxprogrammer Linux - General 2 03-03-2005 06:09 PM
environment variables with java lilrowdy18 Linux - Software 1 08-20-2003 06:43 PM
Set environment variables, why it wont work? yalanop Linux - Newbie 4 01-27-2003 06:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration