Results 1 to 9 of 9
  1. #1
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Post Cannot Execute java programs from the command prompt

    Hi guyz,
    I am unable to execute any program in command prompt yet the path is set correctly. Even when i try to execute java version i get 3 errors
    1. Error: Failed reading value of registry key: Software\JavaSoft\Java Runtime Enviroment\ Current Version
    2. Error: Could not find java.dll
    3. Error: Could not find Java SE Runtime Enviroment

    Also i cannot run any jar file by double clicking!!:(
    What could be the source of all these problems?

    Your help will be highly appreciated

    Best Regards
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

  2. #2
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Default

    Any help guyz?
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

  3. #3
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Default

    This is the exact error that am getting.

    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Manfrizy>java version
    Error: Failed reading value of registry key:
    Software\JavaSoft\Java Runtime Environment\CurrentVersion
    Error: could not find java.dll
    Error: Could not find Java SE Runtime Environment.

    C:\Users\Manfrizy>

    Am so frustrated by this thing right now coz i cant do anything on my projects
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

  4. #4
    milovan is online now Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    293
    Rep Power
    4

    Default

    maybe reinstalation of jre?!?

  5. #5
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Default

    i have already done that several times but nothing happens
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

  6. #6
    milovan is online now Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    293
    Rep Power
    4

    Default

    sorry man, no idea. looks like it has something with win and registry but i'm not sure...

  7. #7
    FlyNn is offline Senior Member
    Join Date
    Feb 2010
    Posts
    128
    Rep Power
    0

    Default

    Try to remove the registry entry and reinstall the JRE again.
    1.Remove registry entry that is erroring out
    2.Reinstall Java itself
    3.Reinstall JRE
    Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by FlyNn View Post
    Try to remove the registry entry and reinstall the JRE again.
    1.Remove registry entry that is erroring out
    2.Reinstall Java itself
    3.Reinstall JRE
    Probably a good idea, but don't forget to backup the registry first!

  9. #9
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Default

    Thanks guyz, it finally worked after deleting the regitry key and reinstalling
    cheerz!!
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

Similar Threads

  1. running command prompt using java
    By xclaim in forum New To Java
    Replies: 1
    Last Post: 01-14-2010, 03:46 AM
  2. Command Prompt Java
    By kelvinsmj in forum New To Java
    Replies: 8
    Last Post: 11-27-2009, 10:30 AM
  3. Replies: 6
    Last Post: 04-20-2009, 04:34 AM
  4. Replies: 1
    Last Post: 01-05-2008, 07:48 PM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 12:23 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
  •