Jump to content

If i open the forge installer, it will quickly close.


Babecido

Recommended Posts

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)

  • Like 1
Link to comment
Share on other sites

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:

  1. execute program called java
  2. call java with first argument: -jar
  3. call java with second argument: forge-1.15.2-31.1.16-installer
  4. call java with third argument: (1).jar

But you want to:

  1. execute program called java
  2. call java with first argument: -jar
  3. 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 by Jusito
typo2
  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...
  • Guest locked this topic
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.