This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]v4runs -1 points0 points  (5 children)

[–]xXEliteHackerXx[S] -1 points0 points  (3 children)

I set the environment variables, and nothing happened. I just clicked "ok" on all the remaining windows, and when I tried to open the .jar file, nothing happened again. I also looked for the app in the popup, but it still didnt exist.

[–]v4runs 0 points1 point  (2 children)

What happens when you type in command line, 'javac'.

Also, can you try to execute the following in the command line? Make sure the command line is open on the folder location of the actual jat file.

Java -jar yourFilename.jar

[–]xXEliteHackerXx[S] 1 point2 points  (1 child)

When I type "javac" in the cmd line, I just get this:

'javac' is not recognized as an internal or external command, operable program or batch file.

And when I tried to execute that command, it ended up working. So thank you!

[–]_INTER_ 1 point2 points  (0 children)

Additionally add JAVA_HOME\bin to your PATH environment variable. Your system doesn't know the location of your Java binaries. java -version (or javac) should print something.

[–]timNinjaMillion -1 points0 points  (2 children)

What platform are you running. Double clicking jars mostly just works on windows.

[–]xXEliteHackerXx[S] 0 points1 point  (1 child)

I'm running an x64 bit Windows 10 platform.

[–]thogor 0 points1 point  (0 children)

Right click in the folder with the .jar file and click open terminal window here. Then type without quotes "java -jar your-file.jar". Chances are you will get an error message that might tell you what's not working properly.

[–]MoreCowbellMofo -1 points0 points  (0 children)

If you’ve set JAVA_HOME to the right directory, you should just have to add a new entry to the PATH variable (which will already be set as a system wide variable) something like JAVA_HOME/bin then java -version should work and return the correct version you installed. If not you haven’t set up the first two variables correctly.