Results 1 to 3 of 3
  1. #1
    JohnPringle83 is offline Member
    Join Date
    May 2011
    Posts
    64
    Rep Power
    0

    Default I broke my Java installation

    Hello, I uninstalled the JDK and the JRE on my windows system and reinstalled the JDK

    I added my path environment variable.

    But when I try to run it with > java test < I get an Error saying

    Error: could not open 'C:\Program Files\Java\jre6\lib\amd64\jvm.cfg'

    I looked in this location and found that the jre6 folder is missing but I found it in the jdk folder instead. so I copied it from there and placed it in the Java folder where the error says it tried to look for it.

    It still doesn't work.

    Can anyone help?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by JohnPringle83 View Post
    Hello, I uninstalled the JDK and the JRE on my windows system and reinstalled the JDK

    I added my path environment variable.

    But when I try to run it with > java test < I get an Error saying

    Error: could not open 'C:\Program Files\Java\jre6\lib\amd64\jvm.cfg'

    I looked in this location and found that the jre6 folder is missing but I found it in the jdk folder instead. so I copied it from there and placed it in the Java folder where the error says it tried to look for it.

    It still doesn't work.

    Can anyone help?
    Better throw your current installation away too and reinstall the JDK again. The JDK also installs the JRE so there's nothing special you have to do. As you already found out the JDK also installs another JRE as a subdirectory of the JDK itself; stay away from that JRE, it is used by the tools in the JDK and it is not meant for general purpose use, that's what the other JRE is for. So when you install the JDK you get the JDK tools, a 'secret' JRE and a JRE that's for you.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    JohnPringle83 is offline Member
    Join Date
    May 2011
    Posts
    64
    Rep Power
    0

    Default

    ok, thanks, I'm not sure why it didn't get installed when I installed the JDK. I did uninstall it and deleted any ramains of it from the folder. Then I reinstalled it but I got the same problem again. I gave up on trying to figure it out so I backed up all my files and reinstalled windows. That fixed it.

    I have a feeling it has something to do with me messing around in my AppData folder. I only just came across this "Hidden folder" when I found that a new program was saving files that I needed access to there instead of saving them somewhere I could easily access them and while I was there, I was deleting some folders for programs I had uninstalled. I guess I must have deleted something the jre needed and wouldn't re-install without it being there. I could be completely wrong.

Similar Threads

  1. About installation of Ide of java
    By waqar100 in forum Eclipse
    Replies: 0
    Last Post: 05-26-2010, 08:04 PM
  2. About installation of Ide of java
    By waqar100 in forum New To Java
    Replies: 1
    Last Post: 05-25-2010, 08:28 PM
  3. Replies: 13
    Last Post: 01-24-2010, 10:58 AM
  4. Replies: 0
    Last Post: 01-18-2010, 02:57 AM
  5. Replies: 4
    Last Post: 01-01-2009, 04:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •