Jump to content

Recommended Posts

Posted

Hello, I'm new to making a modded minecraft server and just recently started looking into how to make/run one on mac. I was able to create a regular Vanilla server and run it smoothly without any errors. I eventually moved on to running modded minecraft forge servers and ran into an error message on the mac terminal and I am unsure where to go or what to do. I have a early 2008 mac running El capitain. The mod server file I used to download the forge server is 1.12.2 (forge - 14.23.2.2611). I used this download then followed the same instructions provided to me by a youtube video on how to start a minecraft server.I then proceeded to start the Start.command file I created to add more ram and ran into this error message:

 

 

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: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
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

 

 

Posted

That crash log tells me that there was an error... and exactly nothing else.
What mods are you running on the sever (if none tell me none)?

Are you able to run a normal minecraft server on your computer?

What tutorial did you follow?

What is inside your Start.command file

What version is your Java?

About Me

  Reveal hidden contents

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)

Posted (edited)

You're using Java 9, which isn't supported by Forge. You need to use Java 8 instead.

 

In future, post the FML log (fml-server-latest.log in the server directory) in a spoiler or on Gist. 

Edited by Choonster

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted (edited)

@Cadiboo I havent added any mods yet. Yes i am able to run a normal minecraft server on the computer. Here is the links to the videos I followed:

 

 

 

start.command file has this text inside:

 

#!/bin/bash

cd "$(dirname "$0")"

exec java Xms1024M -Xmx1024M -jar forge-1.12.2-14.23.2.2611-universal.jar nogui

 

And the version of java im using is Version 8 Update 161 (build 1.8.0_161-b12)

 

Edited by neji813
Posted
  On 2/22/2018 at 7:11 AM, neji813 said:

Version 8 Update 161 (build 1.8.0_161-b12)

Expand  

Java should be Version 8 Update 151 8u151

About Me

  Reveal hidden contents

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)

Posted (edited)

Ok. How would i go about changing it to that? Also is it Runtime environment or development kit for the java download version? 

Edited by neji813
Posted
  On 2/22/2018 at 7:22 AM, neji813 said:

Ok. How would i go about changing it to that? Also is it Runtime environment or development kit for the java download version? 

Expand  

I dont believe you need the Development kit, but I've always downloaded it just to be safe (it includes normal java in it) and its worked fine


 

How to change it:

It could be complicated, you should be able to change it with commands but that didn't work for me (MacBook Pro 2013) so I deleted java completely then installed the right java

Java 8u151:

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

 

MAKE SURE you download 8u151 not 8u152 (8u151 is the second release from the to, and the 3rd item from the top)

 

About Me

  Reveal hidden contents

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)

Posted
  On 2/22/2018 at 7:30 AM, Cadiboo said:

I dont believe you need the Development kit, but I've always downloaded it just to be safe (it includes normal java in it) and its worked fine


 

How to change it:

It could be complicated, you should be able to change it with commands but that didn't work for me (MacBook Pro 2013) so I deleted java completely then installed the right java

Java 8u151:

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

 

MAKE SURE you download 8u151 not 8u152 (8u151 is the second release from the to, and the 3rd item from the top)

 

Expand  

So I deleted my java and reinstalled the files from the website download page you provided. I proceeded to try and attempt to start the server through the start.command file again and received the same message in the terminal I posted earlier. 

Posted
  On 2/22/2018 at 8:09 AM, neji813 said:
Expand  

 

That wasn't in a spoiler or on Gist.

 

There's no error in that log, because you're running the server with Java 8. Your original crash was caused by running the server with Java 9.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
  On 2/22/2018 at 8:50 AM, Choonster said:

 

That wasn't in a spoiler or on Gist.

 

There's no error in that log, because you're running the server with Java 8. Your original crash was caused by running the server with Java 9.

Expand  

How do you place it in a spoiler and I was looking in the folder an that was the latest.I just reinstalled java 8 151 and it still didnt work

Posted
  On 2/22/2018 at 8:52 AM, neji813 said:

How do you place it in a spoiler

Expand  

 

Use the eye icon in the post editor.

 

  Just now, neji813 said:

and I was looking in the folder an that was the latest.I just reinstalled java 8 151 and it still didnt work

Expand  

 

Delete the FML log and then run the server again, making sure to use Java 8. If it still crashes, post the new FML log.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
  On 2/22/2018 at 8:54 AM, Choonster said:

 

Use the eye icon in the post editor.

 

 

Delete the FML log and then run the server again, making sure to use Java 8. If it still crashes, post the new FML log.

Expand  

Ok so I followed your steps and I started the server from the start.command file and Received this message from the mac terminal and NO logs were created:   

 

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: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

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

[Process completed]

 

Posted

So after I decided to run the server straight from the .Jar forge file and it runs smooth but the only set back is the MAJOR lack of ram. Is there any way I could fix that issue with the terminal "start.command" file?

Posted
  On 2/22/2018 at 9:14 AM, diesieben07 said:

You are still running with Java 9.

Expand  

How? I deleted the java files from my computer and then reinstalled from the Java website version 8 151. Then checked the version in my system preferences and it says version 8 151.

Posted (edited)

Ok so I uninstalled Java 9 with the commands from terminal straight from this website here:

 

https://gist.github.com/schnell18/bcb9833f725be22f6acd01f94b486392

 

and then reinstalled java 8. I then removed all of my files regarding forge craft then reinstalled everything and start the "start.command" file then received this error message:

 

  Reveal hidden contents

 

Edited by neji813
Posted

please list all files inside your /Library/Java/JavaVirtualMachines/ directory

you can get to this directory with Command+Shift+G then paste in "/Library/Java/JavaVirtualMachines/"

About Me

  Reveal hidden contents

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)

Posted
  On 2/23/2018 at 7:18 AM, Cadiboo said:

please list all files inside your /Library/Java/JavaVirtualMachines/ directory

you can get to this directory with Command+Shift+G then paste in "/Library/Java/JavaVirtualMachines/"

Expand  

Here the list:

 

jdk-9.0.4.jdk

jdk1.8.0_151.jdk

jdk1.8.0_161.jdk

Posted (edited)

Delete both jdk-9.0.4.jdk and jdk1.8.0_161.jdk

 

only jdk1.8.0_151.jdk should be in that folder

 

5a8fc805d5187_ScreenShot2018-02-23at6_51_07pm.png.9978ad898c54a02b2f8cda737ff68b64.png

Edited by Cadiboo
  • Like 1

About Me

  Reveal hidden contents

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)

Posted

still getting the error when starting the server?

  • Like 1

About Me

  Reveal hidden contents

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)

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Sorry for the late response, but the game opened and I made a world but it's stuck at 0% Here's the latest.log https://mclo.gs/peEb1R8 I disabled The Factory Must Grow and soulsweapons
    • Hey everyone! Two of my friends downloaded this modpack and are having an issue with the blocks loading in correctly. Grass looks like bamboo, waystones look like two barrels stacked on eachother, and wheat looks like water and stairs. What is this problem? How can we fix it? Neither of my other friends or myself had this issue. 
    • I removed Yung's cave biome mod and It wasnt in one of those biomes however the log file said the same line (([25Apr2025 21:20:15.500] [Flywheel Task Executor #5/WARN] [Embeddium-MixinTaintDetector/]: Mod(s) [oculus] are modifying Embeddium class me.jellysquid.mods.sodium.client.render.vertex.serializers.VertexSerializerRegistryImpl, which may cause instability.))
    • Note: i had a couple of ideas, but i just don't know how to execute them. The main idea was to make the new block (let's exemplify with a mixer) be essentially a clone of the mechanical mixer (different texture tho) that would have a different recipe type (instead of mixing, advanced_mixing) and i would copy all the create mod recipes and edit the processing time while also adding the tier dependent ones.
    • Hi! Before everything, thank you for even reading. I'm coming here in need of help making a few aspects for a create mod addon. It's an addon that aims to add almost the full periodic table with realistic ways of obtaining all the elements and capability of almost full automation. For what purpose? A techy armor and to go to the moon and rocky planets of the solar system. It'll have 3 different tiers of machines (mixer, millstone, crushing wheels): basic (just the normal create mod machines but renamed), advanced (25% faster and has recipes only possible for this tier and above) end elite (75% faster than basic and recipes only available for this tier). The problem is, I'm not a coder. I know less than the basics. I know how to do everything else but these machine tiers and i need some help if you can.
  • Topics

×
×
  • Create New...

Important Information

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