Windows 10: Cannot run .jar files, I've tried multiple solutions.

Discus and support Cannot run .jar files, I've tried multiple solutions. in Windows 10 Gaming to solve the problem; I'm using Windows 10. I play Minecraft and I use a mod called Fabric API, it is a core library for other compatible mods. It needs regular updates and... Discussion in 'Windows 10 Gaming' started by Riven_05, Dec 21, 2022.

  1. Riven_05 Win User

    Cannot run .jar files, I've tried multiple solutions.


    I'm using Windows 10. I play Minecraft and I use a mod called Fabric API, it is a core library for other compatible mods. It needs regular updates and suddenly I cannot run the .jar files when downloading the new files. In fact I cannot run any .jar files for any mods at all.When I double click it runs for less then a second and then disappears. I don't see anything running in task manager either. I've tried:uninstalling and reinstalling java using the correct 64bit for my systemsetting java.exe/javaw.exe as the default for .jar filescreated a .bat file to runchecked that my files extensions

    :)
     
    Riven_05, Dec 21, 2022
    #1

  2. Java .jar file is not downloaded as a java file.

    Have you tried the second solution?

    "Open the Settings app. Navigate to the System > Default apps.

    Scroll all the way down and select Choose default apps by file type.

    Locate the .jar file type and choose a default application.

    This method offers limited options and you can only choose applications recognized by Windows 10. Fortunately, there’s another method that you can try. To change file associations, do the following:

    Press Windows Key + X to open Win + X menu and choose Control Panel from the list.

    When Control Panel opens, select Default Programs.

    Click on Associate a file type or protocol with a program.

    Locate the .jar file on the list and double-click it.

    A list of suggested applications will appear. Click on More apps.

    Scroll all the way down and choose Look for another app on this PC.

    Locate the javaw.exe file. By default, the application should be located in Program Files folder. Select the application and choose it as a default for .jar files.

    Optional: Some users recommend changing the parameters of javaw.exe. To do that, simply locate the file and create its shortcut. Right-click it and navigate to the Properties. Now, locate the Target file and add -jar “%1” % . Be sure to select this newly created
    shortcut in Step 7.

    You can also change file association by right clicking the jar file and choosing Open With > Choose another app. After doing that, follow the steps 5 to 8 from the above"
     
    DouglasMillar69, Dec 21, 2022
    #2
  3. DaveM121 Win User
    jar files

    Fixing .jar file opening on Windows requires two steps:

    • Open the Control Panel, and chose "Default Programs - Associate a File type or protocol with a program". Find .jar extension (Executable JAR file) there, and pick Java as default program to open this extension. It will probably be listed as "Java Platform(SE)".
      A faster alternative perhaps is straightforward right-click on a .jar file, and then change associated program by clicking on the "Change..." button.
    • Now open the regedit, and open the HKEY_CLASSES_ROOT\jarfile\shell\open\command key. Luckilly for us, we may specify parameters there for the (Default) value. This is normally: C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %*

    I Hope this Answers your Question!
     
    DaveM121, Dec 21, 2022
    #3
  4. temp02 Win User

    Cannot run .jar files, I've tried multiple solutions.

    .java to .jar file

    As a side note to Easy Rhinos comment, you can only jar .class files, meaning that you need to compile all the .java files and them jar the .class files resulting from the compilation. Example:
    Code: javac Test.java jar cf Teste.jar Test.class[/quote]
     
    temp02, Dec 21, 2022
    #4
Thema:

Cannot run .jar files, I've tried multiple solutions.

Loading...
  1. Cannot run .jar files, I've tried multiple solutions. - Similar Threads - Cannot run jar

  2. Hi, I've been getting this ntdll.dll error for a while and I've tried multiple solutions...

    in Windows 10 Gaming
    Hi, I've been getting this ntdll.dll error for a while and I've tried multiple solutions...: Faulting application name: explorer.exe, version: 10.0.19041.5607, time stamp: 0xda344284Faulting module name: ntdll.dll, version: 10.0.19041.5438, time stamp: 0xab0dece3Exception code: 0xc0000005Fault offset: 0x00000000000649e6Faulting process id: 0x1cc8Faulting application...
  3. Hi, I've been getting this ntdll.dll error for a while and I've tried multiple solutions...

    in Windows 10 Software and Apps
    Hi, I've been getting this ntdll.dll error for a while and I've tried multiple solutions...: Faulting application name: explorer.exe, version: 10.0.19041.5607, time stamp: 0xda344284Faulting module name: ntdll.dll, version: 10.0.19041.5438, time stamp: 0xab0dece3Exception code: 0xc0000005Fault offset: 0x00000000000649e6Faulting process id: 0x1cc8Faulting application...
  4. Hi, I've been getting this ntdll.dll error for a while and I've tried multiple solutions...

    in Windows 10 Installation and Upgrade
    Hi, I've been getting this ntdll.dll error for a while and I've tried multiple solutions...: Faulting application name: explorer.exe, version: 10.0.19041.5607, time stamp: 0xda344284Faulting module name: ntdll.dll, version: 10.0.19041.5438, time stamp: 0xab0dece3Exception code: 0xc0000005Fault offset: 0x00000000000649e6Faulting process id: 0x1cc8Faulting application...
  5. Hi, I've been getting this error for a while and I've tried multiple solutions but none of...

    in Windows 10 Network and Sharing
    Hi, I've been getting this error for a while and I've tried multiple solutions but none of...: Faulting application name: explorer.exe, version: 10.0.19041.5607, time stamp: 0xda344284Faulting module name: ntdll.dll, version: 10.0.19041.5438, time stamp: 0xab0dece3Exception code: 0xc0000005Fault offset: 0x00000000000649e6Faulting process id: 0x1cc8Faulting application...
  6. Hi, I've been getting this error for a while and I've tried multiple solutions but none of...

    in Windows 10 Gaming
    Hi, I've been getting this error for a while and I've tried multiple solutions but none of...: Faulting application name: explorer.exe, version: 10.0.19041.5607, time stamp: 0xda344284Faulting module name: ntdll.dll, version: 10.0.19041.5438, time stamp: 0xab0dece3Exception code: 0xc0000005Fault offset: 0x00000000000649e6Faulting process id: 0x1cc8Faulting application...
  7. Hi, I've been getting this error for a while and I've tried multiple solutions but none of...

    in Windows 10 Software and Apps
    Hi, I've been getting this error for a while and I've tried multiple solutions but none of...: Faulting application name: explorer.exe, version: 10.0.19041.5607, time stamp: 0xda344284Faulting module name: ntdll.dll, version: 10.0.19041.5438, time stamp: 0xab0dece3Exception code: 0xc0000005Fault offset: 0x00000000000649e6Faulting process id: 0x1cc8Faulting application...
  8. PC is running slow after trying multiple solutions

    in Windows 10 Gaming
    PC is running slow after trying multiple solutions: My pc had been running slow as of yesterday. Half the time it starts up slow, half the time it starts up smoothly but then gets slow when I open things. It can be as simple as opening my browser on a clean window and I can see in task manager that my CPU speed is 0.2 when the...
  9. PC is running slow after trying multiple solutions

    in Windows 10 Software and Apps
    PC is running slow after trying multiple solutions: My pc had been running slow as of yesterday. Half the time it starts up slow, half the time it starts up smoothly but then gets slow when I open things. It can be as simple as opening my browser on a clean window and I can see in task manager that my CPU speed is 0.2 when the...
  10. Cannot run .jar files, I've tried multiple solutions.

    in Windows 10 Software and Apps
    Cannot run .jar files, I've tried multiple solutions.: I'm using Windows 10. I play Minecraft and I use a mod called Fabric API, it is a core library for other compatible mods. It needs regular updates and suddenly I cannot run the .jar files when downloading the new files. In fact I cannot run any .jar files for any mods at...