LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-05-2009, 04:27 PM   #1
jefm
Member
 
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.
http://sourceforge.net/projects/freeplane/
I'm on Debian Lenny. After some messing around, I got Java to go, verified at javatester.org.
But Freeplane does not fire up:
Code:
jeffm@jeffm-wks1:~/down/freeplane/freeplane-1.0.33$ ./freeplane.sh
ERROR:   Your Java is not a derivative from Sun's code,
         =======================================
         FREEMIND WILL MOST PROBABLY *NOT* WORK,
         =======================================
         define JAVACMD, JAVA_BINDIR, JAVA_HOME or PATH
         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 http://www.knopflerfish.org 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(...)
^C
jeffm@jeffm-wks1:~/down/freeplane/freeplane-1.0.33$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games
jeffm@jeffm-wks1:~/down/freeplane/freeplane-1.0.33$
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 07:52 AM.
 
Old 11-05-2009, 04:43 PM   #2
AlucardZero
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
Code:
/usr/sbin/update-alternatives --config java
and select a Sun java.
 
Old 11-06-2009, 10:57 AM   #3
jefm
Member
 
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...

Quote:
Originally Posted by AlucardZero View Post
is sun-java6-jre or sun-java5-jre installed? If not, install it.
Code:
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.
jeffm@jeffm-wks1:~$
So that was ok. Not sure why it wants to remove cups, but whatever.

Quote:
Originally Posted by AlucardZero View Post
Then, run
Code:
/usr/sbin/update-alternatives --config java
and select a Sun java.
Code:
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!
 
  


Reply

Tags
java, variables



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 LinuxQuestions.org Member Intro 1 08-05-2008 04:08 AM
Need to learn about Java, Tomcat, MySQL and environment variables GOWDASHARATH Linux - Newbie 1 06-23-2008 03:46 AM
Setting environment variables in Java linuxprogrammer Linux - General 2 03-03-2005 05:09 PM
environment variables with java lilrowdy18 Linux - Software 1 08-20-2003 05:43 PM
Set environment variables, why it wont work? yalanop Linux - Newbie 4 01-27-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:44 PM.

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