Windows 10: Cannot associate .jar files with java on windows 10

Discus and support Cannot associate .jar files with java on windows 10 in Windows 10 Customization to solve the problem; Hi, I've been having trouble associating .jar file type to java on my windows. It's currently associated with internet explorer, and java is not... Discussion in 'Windows 10 Customization' started by HannahTorello, Jul 12, 2019.

  1. Cannot associate .jar files with java on windows 10


    Hi, I've been having trouble associating .jar file type to java on my windows. It's currently associated with internet explorer, and java is not showing up as something I can associate this file type with. What should I do? Java control center is showing up, and I have it installed correctly, but I cannot download anything and have it be connected to java, it immediately associates itself with internet explorer.

    :)
     
    HannahTorello, Jul 12, 2019
    #1
  2. 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, Jul 12, 2019
    #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, Jul 12, 2019
    #3
  4. Cannot associate .jar files with java on windows 10

    .java to .jar file

    if you know the manual then you know you dont put the code in the program, you convert all of your java class files into a jar file using their compiler.
     
    Easy Rhino, Jul 12, 2019
    #4
Thema:

Cannot associate .jar files with java on windows 10

Loading...
  1. Cannot associate .jar files with java on windows 10 - Similar Threads - Cannot associate jar

  2. i cant change what i run jar files with to java

    in Windows 10 Network and Sharing
    i cant change what i run jar files with to java: for some reason i am not able to change from notepad to java https://answers.microsoft.com/en-us/windows/forum/all/i-cant-change-what-i-run-jar-files-with-to-java/50a77723-fb25-49dc-aaa9-38a577be2dd2"
  3. Java won't open a .Jar file, please help!

    in Windows 10 Customization
    Java won't open a .Jar file, please help!: So I have a file that is a .Jar and for some reason Adobe is set as the default application to open it. When I go to change the default the only thing that shows up is adobe or The Microsoft store. I have just recently updated to Java to 1.8 and it still won't show up in the...
  4. Java .jar file is not downloaded as a java file.

    in Windows 10 Installation and Upgrade
    Java .jar file is not downloaded as a java file.: I like playing Minecraft, and I like to play with friends. So I tried to download the sever.jar file and it downloaded a download but, when I wnt to open this file it brought me to internet explorer manage download files page. It asked me if I wanted to save, open, or save...
  5. .jar file

    in Windows 10 Network and Sharing
    .jar file: My .jar file is not opening as it opens a cmd applictaion and then dissapears it is a Jar file as i would need it to be an excecutable jar file i do have java downloaded aswell as jdk latest version need help pleas...
  6. Java .jar file is not downloaded as a java file.

    in Windows 10 Installation and Upgrade
    Java .jar file is not downloaded as a java file.: I like playing Minecraft, and I like to play with friends. So I tried to download the sever.jar file and it downloaded a download but, when I wnt to open this file it brought me to internet explorer manage download files page. It asked me if I wanted to save, open, or save...
  7. cannot change file association

    in Windows 10 Support
    cannot change file association: Suddenly, I cannot change my file association to the program I want. For example, I want to change ".txt" to use "notepad2.exe", not the default "notepad". Recently I was able to do that. If I right-click, properties, and choose my "notepad2", the change won't take effect....
  8. I cannot change my default .jar program to java

    in Windows 10 Customization
    I cannot change my default .jar program to java: I have a windows 10 machine. I have run everything fine before I reset my pc. My default now is set to notepad, which was my mistake. The only options I have to open a file with are apps from the windows store which is not helpful because I need to run this file using...
  9. Opening a JAR file in Windows 10?

    in Windows 10 Support
    Opening a JAR file in Windows 10?: Hi, hope I am posting this to the right forum section. I have this JAR file downloaded and of course, it needs Java in order to open it. In Windows 10, is there any way to find out if I have Java installed? Or, can Windows 10 open up JAR files natively? If not, then...
  10. Windows 10 reassociate .jar files to java

    in Windows 10 Support
    Windows 10 reassociate .jar files to java: I was trying to open a jar file, so I opened with any other program like adobe reader, didn't work. I realized I needed to install Java, and did, but now it wont choose java as one of the apps to use to open it. EDIT: I've tried a lot of things before asking this,...