ScoobyDo Posted November 12, 2017 Posted November 12, 2017 I have being doing research and can't find any solutions but when i run forge alone it works but I need more ram for the server and this error pops up when I try to run the start.command script that I have found. anyone know how to help I have tried 1.7.10 and 1.12 and both with same problem. any help and possible solutions would be great. Script Code: #!/bin/sh cd "$( dirname "$0" )" java -Xms3G -Xmx4G -jar forge.jar nogui -o true Error: Last login: Mon Nov 13 01:53:09 on ttys001 iMac:~ adam$ /Users/adam/Desktop/Test\ Server\ copy/start_server.command ; exit; 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 cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:43) at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:12) 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 Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed] Quote
ScoobyDo Posted November 13, 2017 Author Posted November 13, 2017 (edited) I was using Java 8, tried java 7 but the same problem comes up what version should i be trying to use? Edited November 13, 2017 by ScoobyDo wasn't finished Quote
LexManos Posted November 13, 2017 Posted November 13, 2017 Java 8, also you wont have the same error on J8 because this is a J9 only error. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
ScoobyDo Posted November 13, 2017 Author Posted November 13, 2017 Well i can get a again error: Last login: Mon Nov 13 21:32:28 on ttys000 iMac:~ adam$ /Users/adam/Desktop/Project\ OZone/start_server.command ; exit; 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 cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:43) at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:12) 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 Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed] Java version: JDK 8u151 Quote
ScoobyDo Posted November 13, 2017 Author Posted November 13, 2017 ok i will look into how to into install J9 Quote
ScoobyDo Posted November 13, 2017 Author Posted November 13, 2017 ops meant uninstall J9. also should i be opening the file with Jar launcher Quote
Recommended Posts
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.