Windows 10: Jar files won't run properly

Discus and support Jar files won't run properly in Windows 10 Software and Apps to solve the problem; I have a Jar file that I'd like to run in Java. When I go to default apps, there is a few different options:javaw.exe javaws.exe... Discussion in 'Windows 10 Software and Apps' started by Lewis Taylor1, Oct 8, 2022.

  1. Jar files won't run properly


    I have a Jar file that I'd like to run in Java. When I go to default apps, there is a few different options:javaw.exe javaws.exe javacpl.exejava.exejavarmi.exeHowever all of these when I try to run the file, just open the Java Control PanelThere is also two Java Folders, JavaFX which has nothing in it and Java which contains the bin, legal and lib foldersI've tried deleting and redownloading the Jar file, reinstalling Java and resetting all my default programs, but it just does the same thing every time.The file in question is Forge for Minecraft 1.16.5, which I need to run in order for it to

    :)
     
    Lewis Taylor1, Oct 8, 2022
    #1
  2. 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, Oct 8, 2022
    #2
  3. temp02 Win User
    .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, Oct 8, 2022
    #3
  4. Jar files won't run properly

    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, Oct 8, 2022
    #4
Thema:

Jar files won't run properly

Loading...
  1. Jar files won't run properly - Similar Threads - Jar files won't

  2. windows 10 .jar files not running

    in Windows 10 Software and Apps
    windows 10 .jar files not running: In Windows 10, I'm trying to upgrade the firmware for my Celestron Telescope controller. The Celestron Firmware Manager software comes as a .jar file. How can I run this program? When I launch it, Windows asks "How do you want to run this file?" and nothing seems to work....
  3. windows 10 .jar files not running

    in Windows 10 Network and Sharing
    windows 10 .jar files not running: In Windows 10, I'm trying to upgrade the firmware for my Celestron Telescope controller. The Celestron Firmware Manager software comes as a .jar file. How can I run this program? When I launch it, Windows asks "How do you want to run this file?" and nothing seems to work....
  4. windows 10 .jar files not running

    in Windows 10 Gaming
    windows 10 .jar files not running: In Windows 10, I'm trying to upgrade the firmware for my Celestron Telescope controller. The Celestron Firmware Manager software comes as a .jar file. How can I run this program? When I launch it, Windows asks "How do you want to run this file?" and nothing seems to work....
  5. Jar files won't run properly

    in Windows 10 Gaming
    Jar files won't run properly: I have a Jar file that I'd like to run in Java. When I go to default apps, there is a few different options:javaw.exe javaws.exe javacpl.exejava.exejavarmi.exeHowever all of these when I try to run the file, just open the Java Control PanelThere is also two Java Folders,...
  6. jar files

    in Windows 10 Drivers and Hardware
    jar files: Hi! I have downloaded a jar file before and haven't had this problem so this is new to me. I downloaded the .jar file onto my desktop and when I went to look for it on my desktop, it was not found. I went to quick access and opened up the file location and my desktop...
  7. .jar files

    in Windows 10 Network and Sharing
    .jar files: Hello, I've accidentaly changed .jar files to be opened with notepad. They should be opened with Java program. Could you help me change it back, please? https://answers.microsoft.com/en-us/windows/forum/all/jar-files/d7afb1f5-fc0b-43f9-a22f-25ab2a7f1c84
  8. How to open or run a JAR file on Windows

    in Windows 10 News
    How to open or run a JAR file on Windows: [ATTACH] [ATTACH]JAR files are like EXE files except that they need a Java framework to run. Imagine them as EXE files on Windows which you can double click to launch the program. When you run an EXE file, it uses Windows [...] This post How to open or run a JAR file on...
  9. Some .exe and .jar files wont run.

    in Windows 10 Customization
    Some .exe and .jar files wont run.: First i got Minecraft.jar which works at school but not at home it keeps on saying what do you want to use to run this. Then i got infiniminer.exe tried to run it and the same thing happened. Please help....
  10. Jar files won't open.

    in Windows 10 Software and Apps
    Jar files won't open.: I cannot for the life of me get ANY executable jar file to run, it opens, flashes, and closes if anything. I have tried updating and making sure I have the correct version of java. (Im currently running windows 10 64bit). I have tried going into the command prompt...