Results 1 to 12 of 12
  1. #1
    oontvoo is offline Member
    Join Date
    May 2010
    Posts
    23
    Rep Power
    0

    Default Running jar. files

    Hello,
    I have a question about running a .jar file (java executable file NOT a library or something).
    Usually, I would just click on the jar file, and it'll run just fine. Unfortunately, I accidentally changed the "Open with" property of the .jar file into something else. Now I dont know how to change it back. I mean, I tried "Open with java.exe", but it doesn't work.
    So does anyone happen to know how to fix this?

    Thanks.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,422
    Rep Power
    20

    Default

    What operating system?

    db

  4. #4
    oontvoo is offline Member
    Join Date
    May 2010
    Posts
    23
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    You have to select Java Platform Standard Edition binary, from the Open With menu.

    As I can see in the Open with menu, there are a lot of "Java Platform SE Binary". WHich one should I choose?
    Actually, I tried a few of them, but none works. Some gave an error message saying "Cannot find main class", while some others just flashed a black screen and disappeared.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,422
    Rep Power
    20

    Default

    :headdesk:

    What operating system?

    db

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  7. #7
    oontvoo is offline Member
    Join Date
    May 2010
    Posts
    23
    Rep Power
    0

    Default

    Quote Originally Posted by Darryl.Burke View Post
    :headdesk:

    What operating system?

    db
    I have Windows 7 with all JRE and JDK installed properly (or so I thought)

  8. #8
    oontvoo is offline Member
    Join Date
    May 2010
    Posts
    23
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    And do you have multiple Java versions installed?
    I have ONLY one version installed.

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  10. #10
    nap_patague is offline Member
    Join Date
    Mar 2011
    Location
    Bulacan, Philippines
    Posts
    23
    Rep Power
    0

    Default

    right click on the jar file and select open with then change program. search for java platform

  11. #11
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,422
    Rep Power
    20

    Default

    I have Windows 7
    Right-click any .jar
    Open with...
    Select default program...

    select java.exe (to open with a command prompt window) or javaw.exe (to open without a command prompt window)

    db

  12. #12
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Running EXE files with Java
    By linuxrockers in forum New To Java
    Replies: 2
    Last Post: 03-23-2010, 07:10 PM
  2. Creating and running Java .ini files
    By Camzie in forum NetBeans
    Replies: 4
    Last Post: 11-25-2009, 01:42 PM
  3. running two jar files
    By gayathri_g in forum New To Java
    Replies: 2
    Last Post: 09-02-2009, 09:05 PM
  4. Running batch files in java
    By pradeesh in forum New To Java
    Replies: 10
    Last Post: 12-04-2008, 10:26 PM
  5. running .class files on a website
    By jklsemicolon in forum Networking
    Replies: 10
    Last Post: 08-08-2008, 07:21 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
  •