Jump to content

Recommended Posts

Posted (edited)

I've been trying to start up a forge server unsuccessfully. I'm using a Mac, and I've watched countless videos and read tutorials and followed their instructions, but forge doesn't seem to work. 

Strangely enough, the normal Minecraft server file works fine. But if I double-click the forge-universal.jar file nothing happens for ~10 seconds, then I get a message saying "The Java Jar File could not be launched. Check the console for errors."

I checked the console running the filter "jar", and every time I ran the forge file I received a notification in the console at the exactly when the error message popped up on my screen, roughly 10 seconds after I opened the file. The console notification:

"17:07:54.006305 -0700    Jar Launcher    LSExceptions shared instance invalidated for timeout."

I currently have no mods installed.

There is no log to upload!

Thanks for your time,

Adam

Edited by AdamThePig
Adding information
Posted (edited)

I believe you have to create a start.command file with "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" in it

Or you can also paste this into terminal.

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

 

minecraft_server.jar refers to the location of your server.jar file - you'll probably have to change this

if your using terminal you can type in java -Xmx1024M -Xms1024M -jar and then drag your server file into the terminal window

 

https://minecraft.gamepedia.com/Tutorials/Setting_up_a_Minecraft_Forge_server

 

You could also have incorrect java (minecraft & minecraft server require java)

 

Edited by Cadiboo

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
  On 3/18/2018 at 1:20 AM, Cadiboo said:

I believe you have to create a start.command file with "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" in it

Expand  

That'll launch a vanilla Minecraft server. You need to launch the Forge JAR instead of the Minecraft server JAR.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted (edited)
  On 3/18/2018 at 1:20 AM, Cadiboo said:

I believe you have to create a start.command file with "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" in it

Or you can also paste this into terminal.

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

 

minecraft_server.jar refers to the location of your server.jar file - you'll probably have to change this

if your using terminal you can type in java -Xmx1024M -Xms1024M -jar and then drag your server file into the terminal window

 

https://minecraft.gamepedia.com/Tutorials/Setting_up_a_Minecraft_Forge_server

 

You could also have incorrect java (minecraft & minecraft server require java)

 

Expand  

Unfortunately this didn't work. I've been able to get minecraft_server.jar to launch, both by opening the file and by using a start.command. The command I have previously used is:

#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms1G -Xmx1G -jar minecraft_server.jar

The above command worked for the minecraft_server.jar but not for forge. I tried using your command but it didn't work for either normal or forge. I also tried using the command you advised in terminal, and that didn't work.

Edited by AdamThePig
Posted

are you sure that your .jar file is called "minecraft_server.jar"?

 

What Java are you using?

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)
  On 3/18/2018 at 2:52 PM, larsgerrits said:

That'll launch a vanilla Minecraft server. You need to launch the Forge JAR instead of the Minecraft server JAR.

Expand  

this will attempt to launch a file called minecraft_server.jar, you are able to rename files

and honestly you should not have both vanilla server & forge server in the same folder because they will attempt to access the same files, resulting in broken worlds etc.

Edited by Cadiboo

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)
  On 3/18/2018 at 9:47 PM, diesieben07 said:

Please clarify "didn't work".

Expand  

Terminal said "Unable to access jar file minecraft_server.1.12.2.jar" when I either used the start.command file recommended by Cadiboo or when I pasted the code he/she suggested into terminal. At first I thought this was a naming error, but I checked several times and the file is still named "minecraft_server.1.12.2.jar". I'm a noob when it comes to coding servers, but I think at this point is was just an error in the code. I found other code online that worked with the normal server file but not the forge file, and the code Cadiboo gave me didn't work for either.

The code that worked for the normal server but not forge was:

#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms1G -Xmx1G -jar minecraft_server.1.12.2.jar nogui
  On 3/19/2018 at 9:04 AM, Cadiboo said:

What Java are you using?

Expand  

I'm using the latest version of Java (JDK) downloaded from Oracle, Java SE V9.0.4

  On 3/19/2018 at 9:06 AM, Cadiboo said:

this will attempt to launch a file called minecraft_server.jar, you are able to rename files

and honestly you should not have both vanilla server & forge server in the same folder because they will attempt to access the same files, resulting in broken worlds etc.

Expand  

I changed the code so that it said "minecraft_server.1.12.2.jar", which is the name of my file.

As for the files being in the same place, I cannot find a single tutorial in which they put the two files in different places.

Edited by AdamThePig
Posted (edited)
  On 3/19/2018 at 12:28 PM, diesieben07 said:

No, you are not. You should not touch the files created by the installer, they are named like they are for a reason.

The only file you may rename is the forge-universal jar.

Expand  

you are unable to rename files in your file system? forge-universal.jar was the file I was (trying to be) talking about

 

 

Edited by Cadiboo

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
  On 3/19/2018 at 1:05 PM, TastyCake said:

@Cadiboo Forge needs the vanilla server there aswell

Expand  

Didn't know that, sorry for the salt

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

@diesieben07 Would I be wrong to tell him to downgrade java to java 8?

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • 3 weeks later...
  • 1 year later...
Posted

Don't necro old threads, if you have an issue please make your own.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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