Windows 10: Jar files cannot open

Discus and support Jar files cannot open in Windows 10 Network and Sharing to solve the problem; I cannot open any executable jar file. I've tried everything I could find. I completely uninstalled and reinstalled the latest java update, ran jarfix,... Discussion in 'Windows 10 Network and Sharing' started by 50617683139, Dec 11, 2019.

  1. Jar files cannot open


    I cannot open any executable jar file. I've tried everything I could find. I completely uninstalled and reinstalled the latest java update, ran jarfix, and tried running the jar files from cmd using java -jar and javaw -jar. After running a .jar executable, UniversalGcodeSender, from cmd using java -jar and it returned the following error:


    Exception in thread "main" com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1

    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
    at com.google.gson.Gson.fromJson(Gson.java:803)
    at com.google.gson.Gson.fromJson(Gson.java:741)
    at com.willwinder.universalgcodesender.utils.SettingsFactory.loadSettings(SettingsFactory.java:59)
    at com.willwinder.universalgcodesender.MainWindow.<init>(MainWindow.java:111)
    at com.willwinder.universalgcodesender.MainWindow.main(MainWindow.java:218)
    Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
    at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:374)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
    ... 5 more


    This is not caused by the program, because others have run the same program in java 8 and it's worked then. Does anyone know what could be going on here?

    :)
     
    50617683139, Dec 11, 2019
    #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, Dec 11, 2019
    #2
  3. .jar files opening in internet explorer

    Hi Robert,

    Welcome to Microsoft Community.

    I understand that .jar files opens in Internet Explorer by default and downloads again on Windows 10. I will certainly help you.

    I suggest you to follow the below steps and check if it resolves the issue.

    1. Right click on the .jar file, select Open with
    and click on Choose another app.

    2. Select the app you want to open the .jar file from list.

    3. If required, highlight the app and check the option
    Always use this app to open, click OK.

    Hope this helps. If the issue remains unresolved, please get back to us and we would be happy to help.
     
    Vinodh_Kumar V, Dec 11, 2019
    #3
  4. NateHoopu Win User

    Jar files cannot open

    .jar files opening in internet explorer

    I have the same problem, I accidentaly switched a .jar file to open with internet explorer, or notepad, I can't remember, and I forgot to unselect set it to the default, and now I can't get back to the java thing, please help.
     
    NateHoopu, Dec 11, 2019
    #4
Thema:

Jar files cannot open

Loading...
  1. Jar files cannot open - Similar Threads - Jar files cannot

  2. Cannot Open .jar files

    in Windows 10 Software and Apps
    Cannot Open .jar files: I've been facing an issue on my Windows 11 system related to .jar files. Despite using the Jarfix tool, I'm still unable to open .jar files on my system.Here are some details:Operating System: Windows 11Tool Used: JarfixI've utilized Jarfix to fix the file association for...
  3. Cannot Open .jar files

    in Windows 10 Gaming
    Cannot Open .jar files: I've been facing an issue on my Windows 11 system related to .jar files. Despite using the Jarfix tool, I'm still unable to open .jar files on my system.Here are some details:Operating System: Windows 11Tool Used: JarfixI've utilized Jarfix to fix the file association for...
  4. Java / Jar files / "open with"

    in Windows 10 Gaming
    Java / Jar files / "open with": Every time I try to open a jar file it opens java and then later says java cannot install because of the program I am trying to delete. When I try to delete java "jre-8u341-windows-x64" it says the program is open in "jre-8u341-windows-x64" and does not allow me to delete it....
  5. Cannot set Java to open .jar files by default

    in Windows 10 Network and Sharing
    Cannot set Java to open .jar files by default: I have Windows 10 Home, on an HP Pavilion.Anyway, today I downloaded a .jar file, and whenever I double-clicked on it, it would not open automatically. When right clicking on the .jar file and selecting "open with", "JavaTM Platform SE binary" would not show up. Yes, I have...
  6. jar file not opening

    in Windows 10 BSOD Crashes and Debugging
    jar file not opening: why the hell wont my file open? i have tried literally everything [ATTACH] https://answers.microsoft.com/en-us/windows/forum/all/jar-file-not-opening/867eeb37-c1d0-4185-9ad9-2f9ae95e531d
  7. .Jar files not opening

    in Windows 10 Ask Insider
    .Jar files not opening: ive tried everything, jarfix CMD pathing , BAT file, javaw.exe fucking nothing. submitted by /u/jmantechno [link] [comments] https://www.reddit.com/r/Windows10/comments/l8afe2/jar_files_not_opening/
  8. 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...
  9. .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]...
  10. Unable to open jar files

    in Windows 10 Network and Sharing
    Unable to open jar files: I've been trying to open jar file for a while now and it doesn't seem like anything is working. I have tried many different solutions that didn't seem to work. I've tried jarfix, but it didn't seem to help either. Whenever I try to open a jar file after restarting my...