Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed ubuntu 11.10 on my machine and i recently installed eclipse on it. Well, from the command line it is running fine but when i made shortcut for it on desktop it is giving me error something like this

"A Java Runtime Environment or Java Development Kit must be available in order to run eclipse. No Java Virtual Machine was found after searching the following locations: /home/aaaaa/eclipse/jre/bin/java Java in your current PATH".

I have set PATH environment variable very well and i have also tested "javac" and "java" command through terminal. They both are working fine. Now in order to make my shortcut work what setting i have to make additionally?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Make a script for it, or if one is provided, link to that.

In your script you can export path before executing eclipse.

I'm not sure what the name of the eclipse jar is, but you can put in your script the explicit path of the java executable (/usr/bin/java), and have it run eclipse that way.

share|improve this answer
    
Did exactly what you said but still the same problem is there.. –  ankur.trapasiya Dec 17 '11 at 23:23
    
But i have already specified the JDK path in PATH Environment variable then why i need to do that? Can't it directly take by reading environment variables? –  ankur.trapasiya Dec 17 '11 at 23:36
    
@ankur.trapasiya: yes, it can in theory, but just sometimes it doesn't get picked up when it's being run from a launcher for some reason - so to make life easier....... –  RolandiXor Dec 17 '11 at 23:39
    
so what steps i have to follow exactly ? I have made script but the last point that you said i am not getting it. How i have to provide path of java executable explicitly? –  ankur.trapasiya Dec 18 '11 at 0:06
    
Yeppi, Problem got solved. Just followed the steps written on the wiki.eclipse.org/Eclipse.ini. All i had to do was to provide jvm path in eclipse.ini path. –  ankur.trapasiya Dec 18 '11 at 0:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.