Specifying java to the main menu
I have an application in the directory /home/stephane/programs/springsource/sts-3.1.0.RELEASE that requires java, in order to start up.
I can start the application fine from the command line:
But when I try to start it from the main menu of Lubuntu 12.10 the application does not start and complains it cannot find any java. Here is the popup message it shows:
Here is the menu entry in the .local/share/applications/sts.desktop file:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run STS. No Java virtual machine
was found after searching the following locations:
java in your current PATH
Comment=Spring Source Tools Suite
It used to work from the main manu but not anymore since I removed the java installed in the system. I want to use the java that is installed under my user home directory /home/stephane/programs/jdk1.6.0_37 and not any /usr/bin/java...
How can I tell the desktop environment to use my java ?
Re: Specifying java to the main menu
The java and other path informations were specified in a .bashrc file, but this file is read after the desktop environment is launched.
Instead I moved these java and other path informations into a .profile file which is read before the desktop environment is launched.
Now the application can be started from the main menu fine.