Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Problem running Eclipse

  • 12-07-2012 07: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

  • Posts: 0 ✭✭✭ [Deleted User]


    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, Registered Users 2, Paid Member Posts: 2,032 ✭✭✭lynchie


    Add the jre path to your system path.


  • Registered Users, Registered Users 2 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, Registered Users 2 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