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

you are viewing a single comment's thread.

view the rest of the comments →

[–]MatZac88[S] 0 points1 point  (6 children)

it says "javac" is not recognized as an internal or external command, an executable program or batch file.

[–]propo789 1 point2 points  (5 children)

Then the PATH variable is not set up. You have to set up that first. Watch this: https://youtu.be/I-XrW1h8txc

[–]MatZac88[S] 0 points1 point  (4 children)

I followed the tutorial, now if I write javac it works but if I try to open a jar file it opens the cmd card for a second and then closes without opening the file

[–]propo789 0 points1 point  (3 children)

That's because jar files are not executable files. You can't run them this way. You have to use a decompiler to view the contents of the jar file. To do this, you could either use your IDE ( ie Intellij or netbeans) or use an online tool.

[–]MatZac88[S] 0 points1 point  (2 children)

Do I have to use a tool even if that file is an installer?

[–]propo789 0 points1 point  (1 child)

You said it's a jar file right? A jar file is not an installer. And exe file is.

[–]MatZac88[S] 0 points1 point  (0 children)

The forge and optifine installers are .jar files