Babecido Posted February 24, 2020 Posted February 24, 2020 I downloaded the newest version of Java. If i download the newest release of minecraft Forge, and try to open it, it will close very quickly after i clicked twice on it. I really don't know how to fix this.. Can anyone help me?
kdog12 Posted February 24, 2020 Posted February 24, 2020 Im having a similar issue where i double click the batch file and it opens for a second then closes
Ugdhar Posted February 24, 2020 Posted February 24, 2020 25 minutes ago, Babecido said: I downloaded the newest version of Java. Use Java 8 with forge, I do not believe it is compatible with newer versions. 7 minutes ago, kdog12 said: Im having a similar issue where i double click the batch file and it opens for a second then closes The original post has nothing to do with a batch file, you should create your own thread with more information (i.e. contents of said batch file) 1
Babecido Posted February 24, 2020 Author Posted February 24, 2020 (edited) I am using Java 8, but when i download the latest version of forge, the forge installer.jar willen open for a 10th of a second en thats all what happens Edited February 24, 2020 by Babecido
Babecido Posted February 24, 2020 Author Posted February 24, 2020 2 minutes ago, diesieben07 said: Run it from the command line and post the output. How do i do that?
Babecido Posted February 24, 2020 Author Posted February 24, 2020 3 minutes ago, diesieben07 said: https://www.youtube.com/watch?v=j6uMF-PjGT4 Error: Unable to access jarfile forge-1.15.2-31.1.16-installer.jar Doesnt work
Babecido Posted February 24, 2020 Author Posted February 24, 2020 2 minutes ago, diesieben07 said: Then you are not in the correct directory. What does that mean? What do i have to do? I did the same as the video told me
Babecido Posted February 24, 2020 Author Posted February 24, 2020 27 minutes ago, diesieben07 said: If the installer is located in "Downloads" then you must have the command line also pointed at "Downloads". I did, but still unable to open
Babecido Posted February 24, 2020 Author Posted February 24, 2020 4 minutes ago, diesieben07 said: Show a screenshot of you using the command line and a screenshot of the folder containing the forge jar.
Jusito Posted February 24, 2020 Posted February 24, 2020 (edited) the problem is, the file has spaces in it, so you should use java -jar "forge-1.15.2-31.1.16-installer (1).jar" if you dont use it, you requesting: execute program called java call java with first argument: -jar call java with second argument: forge-1.15.2-31.1.16-installer call java with third argument: (1).jar But you want to: execute program called java call java with first argument: -jar call java with second argument: "forge-1.15.2-31.1.16-installer (1).jar" Because spaces are used as parameter seperation in general (cmd, powershell, bash, whatever) if a path or filename contains a space or special characters, enclose them with quotes. If you are in the correct folder, you only need to write java -jar "forge- and can press TAB for autocomplete, but dont miss the closing " at the end Edited February 24, 2020 by Jusito typo2 1
Babecido Posted February 24, 2020 Author Posted February 24, 2020 It worked LOL, thanks for the help!!!!!!
FusionTheGamer Posted July 19, 2021 Posted July 19, 2021 Didn't help at all, i used the exact command, btw C:\Users\Fusion> is forced on C:\Users\Fusion>D:\java -jar "forge-1.15.2-31.2.50-installer.jar"
Recommended Posts