Springsource and Eclipse startup problems
===

I am using Linux mint and Ubuntu 12.04 currently. I have springsource and eclipse in my system. They are placed in /opt

Eclipse       : /opt/eclipse
Springsource  : /opt/springsource

I have oracle java at /opt/java and I have provided the PATH environmental variable below

    bash# $PATH
    bash: /opt/apache-maven/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/java/bin: No such file or directory

I have created shortcuts for eclipse and springsource in /usr/share/applications. I have provided the .desktop file of springsource here

    [Desktop Entry]
    Name=SpringSource
    GenericName=Java Development
    Comment=IDE
    Exec=/opt/springsource/sts-2.9.2.RELEASE/STS
    Icon=/opt/springsource/sts-2.9.2.RELEASE/icon.xpm
    StartupNotify=true
    Terminal=false
    Type=Application
    Version=1.0
    Encoding=UTF-8
    Categories=Development;

When I try to launch springsource from menu, it works fine in Linux Mint. But when I try to launch from Ubuntu, I am getting the following error 

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:
/opt/springsource/sts-2.9.2.RELEASE/jre/bin/java
java in your current PATH

I am not sure why springsource is pointing to java under /opt/springsource/sts-2.9.2.RELEASE/jre/bin/java . I get the same error for Eclipse. Please advice.