Jump to content

Recommended Posts

Posted

I'm trying to get a server running for my modpack but I cant seem to get it to start.  AFAIK I have everything set up correctly.  I have java 8 installed, not 9/10, and I'm running on a mac.

 

here's what my start.command looks like: 

 

#!/bin/bash
cd "$( dirname "$0" )"
java -Xms2G -Xmx4G -jar forge-1.12.2-14.23.5.2768-universal.jar -o true

 

and here's the message I see in the terminal window, it crashes right away as soon as it starts up:

 

A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:564)

at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)

at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)

Caused by: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader

at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

... 6 more

logout

 

I've tried it with no mods installed, I've made sure I had java 8 installed, I reinstalled forge/libraries/minecraft_server.  None of that has worked.

Posted

Just because you have Java 8 installed does not mean it's your computer's first choice of Java.

Either use the full path of the java binary/executable instead of just invoking java, or uninstall all other versions of Java.

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

How would I do either of these things?  I tried putting the full path in the start.command but that didn't seem to work, and I don't know how I would make sure a newer version of java is uninstalled.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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