Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Problem running Eclipse

Options
  • 12-07-2012 7:55pm
    #1
    Closed Accounts Posts: 8,199 ✭✭✭


    I just installed Eclipse but when I try to run it, I am getting the following error:

    "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:
    C:\users\g-money\documents\eclipse\jre\bin\javaw.exe
    Javaw.exe in your current PATH"

    Not sure what's going on here. I already have the java runtime installed.

    Do I have to set some variable somewhere in order to get Eclipse to run?


Comments

  • Registered Users Posts: 5,246 ✭✭✭conor.hogan.2


    It needs to be in your path/under the eclipse bin folder.

    Google the error, there is 100's of pages discussing it.


  • Closed Accounts Posts: 8,199 ✭✭✭G-Money


    I was Googling it last night but wasn't really finding a clear answer. Although I didn't spend ages on it either.

    So I have to install the Java Runtime to the eclipse folder?


  • Registered Users Posts: 1,994 ✭✭✭lynchie


    Add the jre path to your system path.


  • Registered Users Posts: 7,157 ✭✭✭srsly78


    Then verify the path is working by opening a command prompt and trying to run java. If it says command not found then your path is set wrong.

    Some gotchas when setting path: having a space between items will terminate the parsing.

    %ITEM1 ;%ITEM2 will only have first item in path
    %ITEM1;%ITEM2 is correct
    "c:\oh hai"; "d:\dev\java shizzle\jdk1.7" won't work
    "c:\oh hai";"d:\dev\java shizzle\jdk1.7" is correct


  • Closed Accounts Posts: 326 ✭✭whitesands


    As others have said it's the PATH
    See here http://java.com/en/download/help/path.xml


  • Advertisement
  • Registered Users Posts: 25 sakiboy




  • Closed Accounts Posts: 8,199 ✭✭✭G-Money


    I eventually got this working. I added the location of javaws.exe to the path which got rid of that error and produced a new one. I ended up installing the Java SDK too and a different version of Eclipse and things started to work then.

    Thanks for the help.


Advertisement