Jump to content

Recommended Posts

Posted (edited)

Hi, I have a problem with my server... I have java jdk 13 installed because I need it for netbeans. And I also have java jre 8 and jdk 8 installed too. 

The problem is that the java path is already set to jre 8, and when i use java -version on cmd, it says that I am using java 8, but when I try to open my forge server ( 1.14.4 ) it doesn't load, and in the logfile I can see that it is trying to launch with java jdk 13.

The normal minecraft server launcher starts perfectly, and my minecraft client ( with forge and mods installed ) starts without problems too (which indicates that the java version is set properly to java 8 )... I know that forge only use java 8 or java 10, but if my java version is  set to java 8, why is the forge server launcher the only one that is trying to launch with jdk 13?

 

When I uninstall jdk 13 the forge server starts perfectly, but when I install it again it doesn't. I've been searching for answer for almost three or four hours before making a post... so please, lend me a hand ??

 

Here is the latest log:

  Quote

[23nov.2019 01:26:06.500] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 28.1.90, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge]
[23nov.2019 01:26:06.503] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 4.1.0+62+5bfa59b starting: java version 13.0.1 by Oracle Corporation
[23nov.2019 01:26:06.884] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[23nov.2019 01:26:07.391] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.508] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.511] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.516] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.521] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.525] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.527] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.530] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.533] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.536] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.539] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.542] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.548] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.558] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.564] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.568] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.575] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.579] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.587] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.595] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.612] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.634] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.639] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.645] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.649] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.656] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.665] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:07.667] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
[23nov.2019 01:26:08.881] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .]
[23nov.2019 01:26:08.921] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]: java.lang.RuntimeException: java.lang.IllegalArgumentException: Unsupported class file major version 57
[23nov.2019 01:26:08.921] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39)
[23nov.2019 01:26:08.921] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
[23nov.2019 01:26:08.922] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
[23nov.2019 01:26:08.922] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
[23nov.2019 01:26:08.922] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)
[23nov.2019 01:26:08.922] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)
[23nov.2019 01:26:08.922] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)
[23nov.2019 01:26:08.923] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1049]:     at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)
[23nov.2019 01:26:08.923] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]: Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57
[23nov.2019 01:26:08.923] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.<init>(ClassReader.java:176)
[23nov.2019 01:26:08.923] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.<init>(ClassReader.java:158)
[23nov.2019 01:26:08.923] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.<init>(ClassReader.java:146)
[23nov.2019 01:26:08.924] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.<init>(ClassReader.java:273)
[23nov.2019 01:26:08.924] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.computeHierarchy(TransformerClassWriter.java:82)
[23nov.2019 01:26:08.924] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.access$100(TransformerClassWriter.java:35)
[23nov.2019 01:26:08.924] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter$SuperCollectingVisitor.visit(TransformerClassWriter.java:129)
[23nov.2019 01:26:08.924] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.accept(ClassReader.java:525)
[23nov.2019 01:26:08.925] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
[23nov.2019 01:26:08.925] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.computeHierarchy(TransformerClassWriter.java:83)
[23nov.2019 01:26:08.925] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.access$100(TransformerClassWriter.java:35)
[23nov.2019 01:26:08.925] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter$SuperCollectingVisitor.visit(TransformerClassWriter.java:129)
[23nov.2019 01:26:08.925] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.accept(ClassReader.java:525)
[23nov.2019 01:26:08.925] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
[23nov.2019 01:26:08.926] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.computeHierarchy(TransformerClassWriter.java:83)
[23nov.2019 01:26:08.926] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.access$100(TransformerClassWriter.java:35)
[23nov.2019 01:26:08.926] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter$SuperCollectingVisitor.visit(TransformerClassWriter.java:129)
[23nov.2019 01:26:08.926] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:368)
[23nov.2019 01:26:08.926] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.computeHierarchy(TransformerClassWriter.java:74)
[23nov.2019 01:26:08.926] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformerClassWriter.<init>(TransformerClassWriter.java:48)
[23nov.2019 01:26:08.927] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120)
[23nov.2019 01:26:08.927] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:241)
[23nov.2019 01:26:08.927] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:128)
[23nov.2019 01:26:08.927] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98)
[23nov.2019 01:26:08.927] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
[23nov.2019 01:26:08.928] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at java.base/java.lang.Class.forName0(Native Method)
[23nov.2019 01:26:08.928] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at java.base/java.lang.Class.forName(Class.java:416)
[23nov.2019 01:26:08.928] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51)
[23nov.2019 01:26:08.928] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
[23nov.2019 01:26:08.928] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1058]:     ... 7 more
 

Expand  

 

Edited by Frizzk
Posted

Instead of invoking "java", use the full path to the Java 8 java.exe

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

 

Posted

Hey thanks for replying, but I did not understand you... what do you mean with "invoking"? When i'm going to start the server I just double click the "forge-1.14.4-28.1.90.jar" and nothing happens, it only creates the log file. Could you be a bit more explicative? I don't know if there is a way to start it with a .bat file if thats what you say.

Posted

Thank you so much!! I'll leave here what I did to get it working just for helping other users that have the same issues:

 

- I opened a cmd console in the server folder ( shift + right click, and then open powershell ).

- I wrote "java -jar forge.jar" and then it started with java 1.8.

 

When I put the full path to the java executable it says "C:\Program is not a valid command", so I tried to use just  "java" and it worked. Thank you again for the help!!

  • 1 year later...
Posted
  On 11/23/2019 at 1:57 PM, diesieben07 said:

You can run a jar file from the command line using java -jar jar file here. If you use the full path to the java executable instead of just java you can specify which Java to use.

Expand  

Full path? I have been having this issue and as the other person stated, it simply says it is not a valid command. 

Do you have an example of the code required?

  • 2 weeks later...
Posted
  On 8/4/2021 at 10:03 PM, ThreeForths said:

Full path? I have been having this issue and as the other person stated, it simply says it is not a valid command. 

Do you have an example of the code required?

Expand  

It's very weird. This is how I did it, running this from the server folder

"C:\Program Files\Java\jre1.8.0_301\bin\java.exe" -Xmx8096M -Xms2096M -jar forge-1.12.2-14.23.5.2854.jar

  • 9 months later...
Posted
  On 8/13/2021 at 1:48 AM, EpicGamerViscus said:

It's very weird. This is how I did it, running this from the server folder

"C:\Program Files\Java\jre1.8.0_301\bin\java.exe" -Xmx8096M -Xms2096M -jar forge-1.12.2-14.23.5.2854.jar

Expand  

I'm having a similar problem but that method doesn't seem to work for me. I think the quotes might be messing it up but I am unsure on that. If I remove the quotes it can't detect the space between program and files at the beginning as one filename, so it assumes you are trying to run a command called C:\Program, which doesn't exist, and not trying to follow a set file path. I am trying to find a way to bypass this by using file shortcuts but it isn't working. It keeps saying that they cannot find that file path.

Posted

I used this
"C:\Program Files\Java\jre1.8.0_333\bin\jave.exe" -Xmx16G -Xms8G -jar "Blightfall.jar" nogui
Which didn't work, and when I use this
C:\Program Files\Java\jre1.8.0_333\bin\jave.exe -Xmx16G -Xms8G -jar "Blightfall.jar" nogui
It recognizes C:\Program as a separate thing to the rest

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

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Start by following the docs to get a workspace setup: https://docs.minecraftforge.net/en/latest/gettingstarted/ Then poke around some of the tutorials, https://www.mcjty.eu/docs/1.20/ used to be the goto, but not sure if there are any updates for regular forge or not, but if you've brushed up on Java, it will be enough to get you started. Poke around the Minecraft and Forge sources to see how things are done. Read the FAQ for information on how to post code/logs when you run into issues. Share as much info on issues you have as possible. Use github to host projects, chances of someone helping are higher when they can actually see all your code and/or build it themselves. And finally, keep it on the forums, don't direct message people with questions, most people do not provide personal support like that. Also keep in mind forums posts are not always immediately answered, if you're looking for a quicker response, you can always try the Minecraft Forge discord server.
    • Hello, I have a Forge Minecraft sever (I host it at g-portal.com) which has always worked fine and I had no problems, but today it doesn't wanna work anymore. Today I started the server and the status said online, but after a few seconds it said this: "Start failed". And then out of nowhere it restarted itself and the same thing happened again and again and now it's in an infinite loop where it just keeps failing and then restarts. Here's the download link for the server logs: https://www.mediafire.com/file/sq30dgoonjevib1/2025-07-06-1.log/file Does anyone know how to fix this? If yes I would really appreciate help. Best wishes, Gabs1107
    • I'm experiencing a critical issue on a dedicated Arch Linux server running the latest Forge for Minecraft 1.20.1. When a player exits a Nether portal (not enters, and not via /tp) or teleports into the End via portal, the server completely freezes for 1–10 minutes. During this time, all commands are unresponsive, and the game world essentially locks up. This is with watchdog disabled. Environment: OS: Arch Linux (latest packages) Java: OpenJDK 17 (up to date) Forge Version: Latest 1.20.1 (tested multiple versions from the past ~3 months) Mods: None (issue occurs on a clean install) Server Type: Proxmox VM with: 4 virtual cores 64 GB RAM (63 GB allocated via -Xmx and -Xms flags) Observed Behavior: Observed Behavior: The server freezes for 1–10 minutes when: Exiting a Nether portal (entering does not trigger the issue) Entering or exiting the End using a portal Teleporting using commands (e.g., /tp) works only for the Nether; teleporting to the End via command also causes a freeze The issue occurs anywhere in the world, not tied to specific coordinates or builds During the freeze: The server becomes completely unresponsive to all commands and player actions No crash reports, no errors, and no warnings are logged CPU usage remains under 50%, and RAM usage stays around 6–14 GB After 1–10 minutes, the server recovers automatically and resumes normal operation
    • Hey man, I just found this section in your code.  Try to do this: { "parent": "minecraft:item/generated", "textures": { "layer0": "testmod:item/alexandrite" } } This means your png should be named alexandrite.png. Hope it helps  
  • Topics

×
×
  • Create New...

Important Information

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