Results 1 to 6 of 6
  1. #1
    RitaC is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default .jar not executing after java update failed

    I have been successfully using a .jar file along with Microfocus Cobol for several months. I recently got a "Java update is available" message and clicked okay to do the update. After several hours it failed. The .jar file would no longer execute when I doubleclicked on it. I uninstalled all the JRE and client software and reinstalled successfully. The .jar file still does not run. When I doubleclick, it does not execute and I don't see it in my Windows Task manager as attempting to execute. Any suggestions to getting my .jar file to execute would be greatly appreciated.

    Thanks
    Rita

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

    Default Re: .jar not executing after java update failed

    Can you execute your .jar manually? i.e.

    Java Code:
    java -jar <your_jar_file>
    If it succeeds, I bet the file association is broken.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Vizoere is offline Member
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default Re: .jar not executing after java update failed

    Sounds like the association to the .jar extension got removed, or the new install is in a different folder.

    Open Windows Explorer, go to Tools > Folder Options > File Types
    Scroll down to the .JAR extension
    Click Advanced
    Select the 'open' action
    Click Edit
    Verify that the path to javaw.exe is correct

    If the .JAR extension isn't even there, you'll have to re-add it.

    Mine is configured like...
    Action: open
    Application used to perform action: "C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*
    Use DDE: Checked
    DDE Message: <blank>
    Application: javaw
    DDE Application Not Running: <blank>
    Topic: System

    However, I never double-click .jar's, so it may not work anyway...

  4. #4
    RitaC is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: .jar not executing after java update failed

    I have "C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %* and all the options like you specified. When I try to run it manually from the command prompt I get the message "unable to access jarfile pdc1.jar"

    Any other ideas?

  5. #5
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,728
    Blog Entries
    7
    Rep Power
    21

    Default Re: .jar not executing after java update failed

    Quote Originally Posted by RitaC View Post
    I have "C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %* and all the options like you specified. When I try to run it manually from the command prompt I get the message "unable to access jarfile pdc1.jar"

    Any other ideas?
    First go to the directory where the .jar file is stored, then try again.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default Re: .jar not executing after java update failed

    Is the path in the Registry to the javaw.exe file the correct path to that file? Could the reinstall have put the file in a different location?
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Error: java.lang.Exception: Failed to get cmi entry
    By Faisal Saddique in forum New To Java
    Replies: 7
    Last Post: 02-14-2012, 06:31 PM
  2. Java Applet failed to run
    By gonzo6524 in forum Java Applets
    Replies: 5
    Last Post: 08-12-2011, 04:34 PM
  3. Replies: 3
    Last Post: 05-22-2011, 04:16 PM
  4. urgent help -java mail authorization failed exception
    By ravinder.kadiyan in forum Advanced Java
    Replies: 2
    Last Post: 04-30-2008, 12:27 PM
  5. Java failed to reach to a PC in local LAN
    By JavaEmpires in forum Networking
    Replies: 1
    Last Post: 01-24-2008, 07:30 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
  •