Page 1 of 2 12 LastLast
Results 1 to 20 of 40
  1. #1
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Exclamation Somebody please help me!

    I have had this problem for a year or so and I have spent so long trying to fix it I feel like I am going to fucking cry.

    I have the latest java and JDK. I can not run any .jar files. I can play stuff that uses java through my browser but cannot run a program off my hard drive. I am using vista.

    Let me explain it in a simple form:

    1. Father downloaded new java I think and maybe something else like windows update.
    2. When I try to run my .jar files it says it doesnt know what to open it with.
    3. Ages trying to fix it.
    4. .jar files open a black command prompt box with text for a split second then it closes instantly.
    5. uninstalled all my java staff again.
    6. Reinstalled the newest Java and JDK.
    7. See step 4.

  2. #2
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    Come on you guys are proper java people doesnt anybody have a solution?!

  3. #3
    latinoNJ is offline Member
    Join Date
    Dec 2010
    Posts
    5
    Rep Power
    0

  4. #4
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    Thanks it looks like that making it go to the defined jartype with the jarfile thing might work but can you please explain how I do that step by step?

  5. #5
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    bump bump bump bump

    Please guys 7 hours straight trying to fix it its 01:26 am

  6. #6
    latinoNJ is offline Member
    Join Date
    Dec 2010
    Posts
    5
    Rep Power
    0

    Default

    Scroll to the bottom of the link, you'll see a 2nd answer, try that one 1st.

  7. #7
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    that softpedia jarfix thing?

    Ok ill download it hope it helps

  8. #8
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

  9. #9
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    Feeling really upset again now this is so stressful

  10. #10
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Go to:
    - Windows Start menu
    - Run
    - regedit (Type it)
    - Computer\HKEY_CLASSES_ROOT

    If .jar exists the the tree remove it. ;)

    Right click at HKEY_CLASSES_ROOT and select
    - new
    - key
    and name the new key (folder): .jar

    in .jar, right click at (Default) and press Modify...
    and edit the value to myjar

    Right click at HKEY_CLASSES_ROOT and select
    - new
    - key
    and name the new key (folder): myjar


    Add key "shell" to "myjar", "open" to "shell" and "command" to "open"

    "(Default)" in "myjar" should be valued: Executable Jar File
    "(Default)" in "command" should be valued: "C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*

    "(Default)" in "shell" and "open" should be unset.

  11. #11
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    does that work with vista?

  12. #12
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Additionally we can add an option (right click on the jar file) to open with a terminal emulator (Command Prompt):

    To key "shell" add key "terminal".
    To key "terminal" add key "command".

    Set "(Default)" for "terminal" to "Open with Terminal".
    Set "(Default)" for "command" to: "C:\Program Files\Java\jre6\bin\java.exe" -jar "%1" %*

  13. #13
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    Sorry but I dont know what you mean. I dont know those terms "to key then add" and all that. Id need someone to explain it in plain english to me :(

  14. #14
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    And just for fun, we can add an icon for .jar files:

    To key "myjar" add key "DefaultIcon".
    Set "(Default)" in "DefaultIcon" to: %SystemRoot%\System32\java.exe,1

  15. #15
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Quote Originally Posted by I Want To Kill Java View Post
    does that work with vista?
    This should work on all Windows version from Windows 95,
    and I have tested it on Windows XP, Windows Vista and Windows 7.

    Note that I have specified my installation folder for Java, may differ from you installation.

  16. #16
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Which is the first step you do not understand?

  17. #17
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    But like I said, I can't do that stuff Id need it in plain english you were using terms like "Key" and id need to know exactly wat to do :(

    Please help me

    thanks for trying so far btw

  18. #18
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    I'll try to make some images.
    Be back soon...

  19. #19
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    thank you very much

  20. #20
    Join Date
    Dec 2010
    Posts
    40
    Rep Power
    0

    Default

    An example of what I dont understand:

    "Add key shell to myjar. Denote value, etc"

Page 1 of 2 12 LastLast

Posting Permissions

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