[newbie] running java programs in Gnome.

Doug Ransom newbie@vlug.org
Thu, 19 Feb 2004 16:31:51 -0800


I am not sure of the correct way to generate shortcuts to java programs.

I wanted to run FreeMind,
http://freemind.sourceforge.net/

First, I installed the latest java (j2re), created a file in 
/etc/profile.d/javavm.sh to export /usr/java/j2re1.3.2_03/bin into my 
path.   Hope thats the right way to add to the path.

Unzipped freemind to /usr/local/freemind.  In that directory is a shell 
script to launch freemind from java:

    java#!/bin/sh
    echo $@
    #
    # Thanks to Peter Torngaard
    #
    full=$(dirname $0)
    echo ${full}/lib/freemind.jar
    java -jar ${full}/lib/freemind.jar $@
                                                                                   


Was that a normal place to drop an app in linux?  Would it be normal to 
add /usr/local/freemind to the path now?

How would I go about creating a gnome "shortcut" (or whatever the Gnome 
term is) so I can launch this script from any users main menu?


Doug Ransom