Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Java ERROR when allocating more ram to my server (Mac)
The update for 1.13 is being worked on - please be patient. (Updated 02/19/19)
Sign in to follow this  
Followers 1
ludus98

Java ERROR when allocating more ram to my server (Mac)

Started by ludus98, January 21

4 posts in this topic

ludus98    0

ludus98

ludus98    0

  • Tree Puncher
  • ludus98
  • Members
  • 0
  • 3 posts
  • Report post
Posted January 21

I'm trying to allocate more ram to my server. For doing so, I typed the following on the terminal (after I located the file, of course): java -Xmx1024M -Xms1024M -jar forge-1.12.2-14.23.5.2808-universal.jar. Then it shows up this error: 

Quote

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:566)
    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: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
    at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    ... 6 more
 

I tried using the same command on a minecraft non forge server and it worked perfectly fine. Can somebody help?? THANKS!!

Share this post


Link to post
Share on other sites

quadraxis    17

quadraxis

quadraxis    17

  • Creeper Killer
  • quadraxis
  • Forge Modder
  • 17
  • 141 posts
  • Report post
Posted January 21

You need to use Java 8, later versions are not currently supported.

Share this post


Link to post
Share on other sites

ludus98    0

ludus98

ludus98    0

  • Tree Puncher
  • ludus98
  • Members
  • 0
  • 3 posts
  • Report post
Posted January 21

My Java version is the latest (it says Java 8), and for trying to allocate more RAM I had to download JDK (version 11.0.2). Could any of the two be the problem? Thank you.

Share this post


Link to post
Share on other sites

ludus98    0

ludus98

ludus98    0

  • Tree Puncher
  • ludus98
  • Members
  • 0
  • 3 posts
  • Report post
Posted January 21

nevermind, I got the 8th version of JDK and it works. Thanks a lot

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 1
Go To Topic Listing Support & Bug Reports

  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Drachenbauer
      [1.13.2] How do i setup a block propertys constructor in a blockbase?

      By Drachenbauer · Posted 12 minutes ago

      but i cannot look inside there, if i hover over my imports, who starts wich minecraft, i get a popup with message: and if i try to open such a class to look into it, i just get an more advanced info-vindow, that´s not a java-editor
    • amelisse
      [1.13.2] How Register Entity for new Snowball

      By amelisse · Posted 16 minutes ago

      I dev a new Snowball dirt i register item but i don't know how register ans declared this entityDirtBall? and how created entitype?     EntityDirtBall.class // // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package net.amelisse.craftland.tileentity.items; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityType; import net.minecraft.entity.monster.EntityBlaze; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.init.Particles; import net.minecraft.util.DamageSource; import net.minecraft.util.math.RayTraceResult; import net.minecraft.world.World; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; public class EntityDirtBall extends EntityThrowable { public EntityDirtBall(World world) { super(EntityType.SNOWBALL, world); } public EntityDirtBall(World world, EntityLivingBase entity) { super(EntityType.SNOWBALL, entity, world); } public EntityDirtBall(World world, double x, double y, double z) { super(EntityType.SNOWBALL, x, y, z, world); } @OnlyIn(Dist.CLIENT) public void handleStatusUpdate(byte b_) { if (b_ == 3) { for(int lvt_2_1_ = 0; lvt_2_1_ < 8; ++lvt_2_1_) { this.world.spawnParticle(Particles.ITEM_SNOWBALL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D); } } } protected void onImpact(RayTraceResult p_70184_1_) { if (p_70184_1_.entity != null) { int lvt_2_1_ = 0; if (p_70184_1_.entity instanceof EntityBlaze) { lvt_2_1_ = 3; } p_70184_1_.entity.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)lvt_2_1_); } if (!this.world.isRemote) { this.world.setEntityState(this, (byte)3); this.remove(); } } }  
    • Drachenbauer
      Error with block registration

      By Drachenbauer · Posted 24 minutes ago

      but if i start the properties for the ItemBlock with (Item.Properties. in ItemInit.ITEMS.add(new ItemBlock(this, null).setRegistryName(this.getRegistryName())); instead of "null" in my block class, the dropdown-menu holds only the options: -class:Class<net.minecraft.item.Item.Properties> -super -this   for Block properties in the blockinit it will show me things like material, sound or hardness/resistance
    • Kemanorel
      [1.12.2] Bit of help with removing baby zombies?

      By Kemanorel · Posted 31 minutes ago

      Myself and the group I play with heavily dislike baby zombies so I decided to try to remove them. However, whenever I test it by spawning a bunch of zombies, I still get a few babies in there. This is the code being used.  
    • Cadiboo
      [1.12.2] Waiting a few seconds.

      By Cadiboo · Posted 32 minutes ago

      I think blocks can have a callback when they’re placed. Look at the fire block 
  • Topics

    • Drachenbauer
      7
      [1.13.2] How do i setup a block propertys constructor in a blockbase?

      By Drachenbauer
      Started Tuesday at 05:16 PM

    • amelisse
      0
      [1.13.2] How Register Entity for new Snowball

      By amelisse
      Started 16 minutes ago

    • Drachenbauer
      13
      Error with block registration

      By Drachenbauer
      Started Tuesday at 09:50 PM

    • Kemanorel
      0
      [1.12.2] Bit of help with removing baby zombies?

      By Kemanorel
      Started 32 minutes ago

    • heyitsmenobodyy
      5
      [1.12.2] Waiting a few seconds.

      By heyitsmenobodyy
      Started 1 hour ago

  • Who's Online (See full list)

    • BeardlessBrady
    • amelisse
    • WilliHay
    • Kemanorel
    • trexxet
    • MORIMORI0317
    • DavidM
    • Keksuccino
    • Drachenbauer
    • FloppyGaming
    • KonanTheRabbit
    • sunsigne
    • MX_wb
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Java ERROR when allocating more ram to my server (Mac)
  • Theme
  • Contact Us

Copyright © 2017 ForgeDevelopment LLC Powered by Invision Community