Windows 10: jar files

Discus and support jar files in Windows 10 Network and Sharing to solve the problem; I downloaded a jar file but accidentally connected it to a app so when ever i open it it opens the app. I dont want it to do this and its not letting... Discussion in 'Windows 10 Network and Sharing' started by KatieSmith9, Jan 13, 2021.

  1. jar files


    I downloaded a jar file but accidentally connected it to a app so when ever i open it it opens the app. I dont want it to do this and its not letting me fix it.

    :)
     
    KatieSmith9, Jan 13, 2021
    #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, Jan 13, 2021
    #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, Jan 13, 2021
    #3
  4. jar files

    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, Jan 13, 2021
    #4
Thema:

jar files

Loading...
  1. jar files - Similar Threads - jar files

  2. .jar file text always looking corrupted

    in Windows 10 Network and Sharing
    .jar file text always looking corrupted: Whenever I open a jar file any text inside of it just looks like its corrupted. As example, thescreenshot here is my most recent encounter. It's just a Minecaft tool but I have the same with any jar file and I have no idea why. My first guess is that it came from me changing...
  3. Jar File not Opening

    in Windows 10 Network and Sharing
    Jar File not Opening: So I have installed Minecraft Java 1.16.4 on my Windows 10 and I have tried to install Optifine 1.16.4 on it and I got it where the icon is the jar teacup with the smoke and every time I try to install it it says there was an error in the following sequence that has a...
  4. I can't open jar files

    in Windows 10 Ask Insider
    I can't open jar files: I wanted to install forge to get mods in minecraft but the jar files won't launch. I tried using cmd, creating a bat file and using jarfix. Nothing worked. All it does is create a new text document which says: JVM info: Oracle Corporation - 1.8.0_271 - 25.271-b09...
  5. I can't open jar files

    in Windows 10 Gaming
    I can't open jar files: I wanted to install forge to get mods in minecraft but the jar files won't launch. I tried using cmd, creating a bat file and using jarfix. Nothing worked. All it does is create a new text document which says: JVM info: Oracle Corporation - 1.8.0_271 - 25.271-b09...
  6. Why all my Jar. Files appear in the notepad app

    in Windows 10 Network and Sharing
    Why all my Jar. Files appear in the notepad app: So I have been experiencing a recent issue regarding the fact that if I try to download a .jar file it opens in notepad. I am open to any suggestions on how to fix this issue. I need it so I can download them in java but either that just won't work or my computer doesn't like...
  7. .jar files open and close immediately

    in Windows 10 Network and Sharing
    .jar files open and close immediately: I'm trying to download Minecraft forge, and It gives me a .jar file. I accidently set it to open with Photoshop, so I set it to open with Java, but when I try to open it, it opens, then closes immediately. When I try to force it open by clicking, it opens into cmd. I have the...
  8. .jar file opens with wordpad.

    in Windows 10 Ask Insider
    .jar file opens with wordpad.: So recently I may have done something stupid. I'm not sure what I did but when I try to open a file with Java it opens on wordpad for some reason. I tried changing it to Java but I can't find Java. Is there anything I can do to fix this? submitted by /u/Koufpa [link]...
  9. There are exactly zero reasons why Windows Media Player should sieze control of .jar files

    in Windows 10 Customization
    There are exactly zero reasons why Windows Media Player should sieze control of .jar files: And yet it does. And when it does, Windows offers no mechanism to change it back. The Java runtime is not an option in app defaults settings. This can be fixed by downloading and installing the JRE again, but when it happens IN THE MIDDLE OF CLASS, that takes a ridiculous...
  10. Scanning Jar file with Windows Defender

    in AntiVirus, Firewalls and System Security
    Scanning Jar file with Windows Defender: Can windows defender scan Jar files and tell me if they have malicious intents. I downloaded some safe jar files as mods for some of my game , but now I do wonder if there could be some kind of hidden virus windows defender cannot handle. [Original Title: Windows Defender]...