Can't execute .jar file

Anonymous
2021-07-11T22:53:00+00:00

So right now im trying to open a jar file but ive had no success. Ive seen videos for help but noticed that most computers say "executable jar file" instead of my "jar file". Can someone help with how to change it to executable?

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2021-07-12T03:12:25+00:00

    Hello Clark.

    I'm Daniel, an independent Advisor. It is a pleasure to help you today. I know how frustrating it can be for you, but I will do my best to help you :)

    I understand you are having trouble opening a .Jar file

    I suggest you follow the steps below from Gregori_Martins

    Disable the Hide extensions for known file types option in File Explorer:

    1. Press Windows+R keys, type control folders and click Ok;
    2. Click the View Mode tab;
    3. In the list of options under Advanced Settings, disable Hide extensions for known file types in File Explorer;
    4. Click OK.

    Creating a batch file to run a file with a .jar extension:

    1. Create a folder wherever you prefer and paste your .jar file;
    2. Right-click on the folder and select New > Text Document;
    3. Name the .txt file Run.bat;
    4. Right-click on Run.bat and select Edit;
    5. In Notepad enter the following parameters:

    Java -jar Filename.jar

    Tip: Copy the name of the file you are trying to run along with its extension, for example, Filename.jar.

    1. Click File > Save.
    2. Right-click on Run.bat and select Run as Administrator;

    Note 2: The files Execute.bat and Filename.jar must be in the same folder, otherwise it will not work.

    ____

    I hope I have helped you, have a great day.

    Take care!

    4 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2021-07-12T15:08:20+00:00

    This seemed to do the trick. Thanks so much for helping me out.

    0 comments No comments