Hello everyone, i'm here to show you a problem that i have been facing for a while, and to show you how to fix it. Lets get started.
I will be using minecraft_server.rar as an example.
1. Change the .rar in minecraft_server.rar into .jar It should look like this now, minecraft_server.jar
If it doesn't convert back into a .jar file, proceed to next step
2. Go to windows search bar and type in, "Folder options" Click on it and click on "view" Next scroll till you see "Hide extensions for known file types" and Uncheck it.
Now go back to step one and it should convert. If it doesn't, go to next step
3.Right click on minecraft_server.rar and click, "Open with" and choose default program. You should see "Java" or "Java™ Platform SE Binary" on recommended program. If you don't, go to "browse" then "computer" and at the search bar type in, "Java" and click on the first "Java.exe"