Jump to content

Issue with Running .bat


mrzinfandel

Recommended Posts

Testing a set of mods to be used on a server.
Right now I am having a issue trying to use a .bat to allocate more on my machine to the server. Every time I open it, I get a .CMD only displaying this.

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(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:62)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:31)
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

 

I am tying this while using forge-1.10.2-12.18.3.2488-universal.jar with minecraft_server.1.10.2.jar in the folder as well. Not sure what to do since most threads I search up say to just make sure the Minecraft Server .jar is in the folder, which it is.

 

This is what I have in my .bat maybe I have it composed wrong?

@echo off
"C:\Program Files\Java\jre-9\bin\java.exe" -Xmx6g -Xms6g -jar forge-1.10.2-12.18.3.2488-universal.jar nogui
PAUSE
pause

 

Link to comment
Share on other sites

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.