Share via

jar files wont open with java.

Anonymous
2024-05-21T15:25:40+00:00

hello! i wanted to download minecraft shaders, i followed a guide on how to download everything but when i try to open up the files i downloaded (optifine and complementary shaders) they dont open! the error message says "unable to access jar file" and i haven't been able to find anybody with the same problem as me!!!!!! pls help :-(

Windows for home | Windows 11 | 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

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-07-18T20:40:26+00:00

    when i try to do :

    1. Run the Jar File Correctly
      Try running the jar file from the command prompt:
      Open the Command Prompt (CMD).
      Navigate to the directory where the Jar file is located. For example, if the file is in the "Downloads" folder:
      cd Downloads
      Type the following command:
      java -jar fileName.jar
      (replace fileName.jar with the name of your file)

    it says "Error: Unable to access jarfile Iris-installer-3.2.1.jar"

    idk what to doooooo

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-05-21T16:31:10+00:00

    Hi, My name is Ahmet, and I am an Independent Advisor. I hope you're well, I'm sorry that you are experiencing this issue. I'd be more than happy to assist you.

    1. Make Sure Java is Installed and Up-to-Date

    First, make sure that Java is installed and up-to-date on your computer.

    Download the latest version of Java

    Complete the installation by running the downloaded file.

    1. Check that Java is installed correctly

    To check that Java is correctly installed and added to the system PATH:

    Open the Command Prompt (CMD).

    Type the command java -version and press Enter.

    If you see Java version information, Java is installed correctly. If you get an error like "java is not recognized as an internal or external command", you will need to add the directory where Java is installed to the system PATH.

    Setting the PATH Variable

    Find your Java Installation Directory:

    Usually located at C:\Program Files\Java\jdk-<version>\bin.

    Add to System Variables:

    Right click on the Start menu and select "System".

    Click "Advanced system settings" on the left side.

    In the window that opens, click on the "Environment Variables" button.

    Under "System variables" find the variable "Path" and edit it.

    Add a new entry and paste the Java bin directory path (for example, C:\Program Files\Java\jdk-<version>\bin).

    1. Run the Jar File Correctly

    Try running the jar file from the command prompt:

    Open the Command Prompt (CMD).

    Navigate to the directory where the Jar file is located. For example, if the file is in the "Downloads" folder:

    cd Downloads

    Type the following command:

    java -jar fileName.jar

    (replace fileName.jar with the name of your file)

    4.Check File Permissions

    There may be a problem with file permissions. Right-click on the jar file, select "Properties" and check that the permissions are set correctly in the "Security" tab.

    Let me know how it goes and hopefully it will help.

    Have a wonderful day.

    Yours sincerely,

    Ahmet

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments