Search code examples
javajar

Jar files are not opening


.jar files won't open on my PC. I've tried reinstalling Java and messed with the environment variables.


Solution

  • Try to do all of the following things:

    • Ensure that you have JRE installed by entering java -version in command prompt.
    • Ensure that Java is properly added to the system path. Read about that here.
    • Open your command prompt, navigate to the location of your jar and enter javaw.exe -jar <yourfile>.jar
    • If you are using a path instead of a jar name make sure you are wrapping it in double quotes.
    • Also make sure the jar file is actually present in the directory you are trying to access it from

    If that doesn't work please provide additional information about what exactly didn't work.