Results 1 to 7 of 7
  1. #1
    dragoduval is offline Member
    Join Date
    Jun 2014
    Posts
    4
    Rep Power
    0

    Angry Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg

    I know it was often asked for jre6 but every-time i look at them they either dont work or are saying stuff without telling us how to do them, so someone know how to fix this ? I'm trying to watch video on my ps3 whit PlayStation Media Server and yesterday it worked but now it keep tellling me i got error. First it told me error opening registry key 'software/javasoft/java runtime environment' but i fixed it by adding the registration key manually (saw it on a forum so i tried) but now it give my this damn Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg and its starting to get on my nerve. Anyone know a way to fix it ? And not in simlish but in English (or French), because some are not really helpful.



    That one is really nice, if i understood half of it.

    Might be a slightly different cause, but that second issue occurs for me in scala 2.9.0.1 on Win7 (x64), though scala-2.9.1.final has already resolved this issue mentioned here:

    \Java\jdk1.6.0_25\bin\java.exe was unexpected at this time.
    My %JAVA_HOME% set to a path like this: c:\program files(x86)\Java\jdk...

    Note the space and the parentheses.

    If you change line 24 in %SCALA_HOME%\bin\scala.bat from:

    if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe
    to

    if exist "%JAVA_HOME%\bin\java.exe" set "_JAVACMD=%JAVA_HOME%\bin\java.exe"
    It works fine. Note the quotes around the set command parameters, this will properly enclose any spaces and 'special' characters (eg: spaces and parentheses) in the variable's value.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,401
    Rep Power
    25

    Default Re: Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg

    Does the path and file in the title exist?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    dragoduval is offline Member
    Join Date
    Jun 2014
    Posts
    4
    Rep Power
    0

    Default Re: Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg

    No, just checked it i got no amd64 folder and my program files end whit (x86). Do i make it ?

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,401
    Rep Power
    25

    Default Re: Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg

    That folder should have been created by the jre installation.

    What registry key did you change and what did you change it to?
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    dragoduval is offline Member
    Join Date
    Jun 2014
    Posts
    4
    Rep Power
    0

    Default Re: Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg

    From the eclypse forum eclipse - "Could not find Java SE Runtime Environment." after installing Java - Stack Overflow

    Finally found a forum post that outlined what the registry is supposed to look like when not broken.

    Added key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
    Added String Value CurrentVersion = 1.7
    Added key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7
    Added String Value JavaHome = C:\Program Files\Java\jre7
    Running cmd java -version and Eclipse now works

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,401
    Rep Power
    25

    Default Re: Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg

    I don't know if you can put paths in the registry that don't exist on your PC and expect anything good to happen.

    I'd uninstall your current version of the JRE and reinstall it.
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    dragoduval is offline Member
    Join Date
    Jun 2014
    Posts
    4
    Rep Power
    0

    Default Re: Error: could not open 'C:/Program Files/Java/jre7/lib/amd64/jvm.cfg

    Thanks it work again :D.

Similar Threads

  1. Replies: 4
    Last Post: 04-18-2014, 06:10 PM
  2. Replies: 0
    Last Post: 12-17-2011, 05:37 AM
  3. Replies: 3
    Last Post: 03-28-2011, 04:57 PM
  4. Too many files open error
    By newbie14 in forum Networking
    Replies: 4
    Last Post: 01-05-2011, 09:32 PM
  5. Replies: 1
    Last Post: 01-13-2010, 05:58 AM

Posting Permissions

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