JVM no longer runs


  1. Posts : 4
    Windows 7 professional x64
       #1

    JVM no longer runs


    I have a problem with Jre installation. I installed Eclipse a couple of weeks ago, and everything ran fine. I tried it again today and I get the following message:

    "A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations: C:\Program Files\eclipse-cpp\jre\bin\javaw.exe in your current Path"

    Here is my problem the path to the jre installation is in the PATH variable, and everything worked until today. there is a java\jre6 installation in both "Program Files" and "Program Files (x86) directories. I think its the java update that has screwed everything up, but could do with some advise as to what the problem is, and how to prevent it happening again.

    I had this problem months back before my hard drive died, and I can't remember what fixed the issue; I think I had to uninstall all of the Java and then re-install it.

    Also I saw a reply to one similar thread that windows 7 had a configuration option that could disable Java - is this true, and if it is how do I check it to see if this is my problem.
      My Computer


  2. Posts : 338
    win7 home premium-64bit-SP1-IE10
       #2

    Welcome to the forum
    Some programs when updated leave behind some leftovers and that lead to some problems.
    Please go to the following thread and see if it is for some help:

    Java not functioning.
    Good luck
      My Computer


  3. Posts : 4
    Windows 7 professional x64
    Thread Starter
       #3

    Thanks for the redirect, unfortunately no go. The browser runs JAVA fine, and the tool says the latest is installed. However type "java" at the command prompt still same problem unless I go to the folder and run "java.exe". then typing "java -version" at the command prompt does actually display the version information. Eclipse still reports the same message, even though the java directories are in the system path.

    Like I said earlier eclipse was running earlier in the week now its not so either one of the java updates or one of the windows critical updates I received in the last couple of days broke something.http://cssimg.sevenforumscdn.com/images/smilies/mad.png
      My Computer


  4. Posts : 338
    win7 home premium-64bit-SP1-IE10
       #4

    Maybe you have to check with your ECLIPS ?
      My Computer


  5. Posts : 53,364
    Windows 10 Home x64
       #5

    Welcome to Seven Forums PWDawgy. Forgive me if I misunderstood your original post, so I will ask some questions.

    If you navigate to C:\Program Files\eclipse-cpp\jre\bin , is there a javaw.exe there? If so hover your cursor over it, and see what version it is.

    Now navigate to C:\Program Files\Java\jre6\bin and hover over the javaw.exe there.

    Are they both the same version? It's possible you updated Java, but the version in Eclipse is an older version.

    You could copy the javaw.exe from C:\Program Files\Java\jre6\bin to the C:\Program Files\eclipse-cpp\jre\bin

    As long as the path points to a javaw.exe in C:\Program Files\eclipse-cpp\jre\bin , then Eclipse should work.

    It may be simpler if Eclipse has an update, but I'm assuming you have already confirmed that?

    A Guy
      My Computer


  6. Posts : 4
    Windows 7 professional x64
    Thread Starter
       #6

    Thanks Hanna1 and A Guy,

    Still not sure why JRE is not running from the get go with the latest auto updates. But for the Eclipse problem I have the work around, not Idea but it does follow the last post.

    When I looked at the java sub-directory in Eclipse it was empty (can't swear it was that way before the update, but I know it did work prior to the update), copying the contents of the Java\jre6 into this directory fixed the problem; I even tried jre7 which to date is functioning correctly.

    Again thanks for all your help and support, without it I would still be looking.
      My Computer


  7. Posts : 53,364
    Windows 10 Home x64
       #7

    I don't believe the Java installer removes older versions, at least it never did before. I'm assuming updating JRE does not update the version in Eclipse. It would seem likely that Eclipse must update soon after. Is there an updated version? In any case, glad we could help and you got it sorted

    A Guy
      My Computer


  8. Posts : 4
    Windows 7 professional x64
    Thread Starter
       #8

    That's what is odd, the eclipse deliverable doesn't provide a JVM nor a folder marked jre. It assumes that java is in the system path, otherwise it looks for it in the default location
    eclipse\jre\. Up until two weeks ago (the last time I used eclipse before this all started) eclipse ran as expected, then suddenly without an eclipse update I can't run the executable because it can't find the jvm. The only things that changed on my system related to this was my system received a number of critical windows updates and a couple of java updates.

    I had to re-install to get the browser to work, but eclipse will not work unless I put the jvm executable in the default path 'eclipse\jre'. Something has changed I don't know what and I don't know how to correct it, but putting the path of the Java executable in the system path doesn't resolve it so I suspect the windows update changed something.

    I'd like to get to the bottom of the issue, since my solution is a workaround, so if you have any ideas I appreciate them.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:47.
Find Us