Jump to content

Error when launching forge server (1.12.2)


AdamThePig

Recommended Posts

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
Link to comment
Share on other sites

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

13 hours ago, Cadiboo said:

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

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/

Link to comment
Share on other sites

20 hours ago, 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)

 

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
Link to comment
Share on other sites

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

 

What Java are you using?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

18 hours ago, larsgerrits said:

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

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

On 3/18/2018 at 2:47 PM, diesieben07 said:

Please clarify "didn't work".

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
17 hours ago, Cadiboo said:

What Java are you using?

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

17 hours ago, 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.

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
Link to comment
Share on other sites

15 hours ago, 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.

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

14 hours ago, TastyCake said:

@Cadiboo Forge needs the vanilla server there aswell

Didn't know that, sorry for the salt

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

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

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

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

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.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Link to comment
Share on other sites

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.