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
  • Forge Mods
  • Mods
  • launcher.java.lang.reflect.InvocationTargetException
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
typicalname

launcher.java.lang.reflect.InvocationTargetException

By typicalname, May 2, 2019 in Mods

  • Start new topic

Recommended Posts

typicalname    0

typicalname

typicalname    0

  • Tree Puncher
  • typicalname
  • Members
  • 0
  • 1 post
Posted May 2, 2019

Hello. I've used to host on my normal main computer.

I wanted to move to a Amazon AWS (EC2) server because it was faster.

 

I am currently running on Ubuntu.

The error is right below.

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 cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:43)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:12)
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

Yes, I have looked at other people's posts. They had the same issue, but they fixed it by having this "minecraft_server.1.7.10.jar" 

I do have the same file as them, but it still does not work. I am pretty sure I do not have any missing files.

I have used the installer, and used this command:

java -jar forge-1.7.10-10.13.4.1614-1.7.10-installer.jar --installServer

If you can help, please reply.

Share this post


Link to post
Share on other sites

DavidM    179

DavidM

DavidM    179

  • World Shaper
  • DavidM
  • Members
  • 179
  • 1821 posts
Posted May 2, 2019

Sorry. 1.7.10 is no longer supported on this forum due to its age.

Update to a modern version of Minecraft to receive support.


Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Klarks
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks · Posted just now

      Why i need cal super.getCapability? Is new EntityArmorInvWrapper(entity) doing same thing? LivingEntity. it returns handlers which are LazyOptional<IItemHandlerModifiable>[] and they contains same things what i have already created private final net.minecraftforge.common.util.LazyOptional<?>[] handlers = net.minecraftforge.items.wrapper.EntityEquipmentInvWrapper.create(this); public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, @Nullable Direction facing) { if (this.isAlive() && capability == net.minecraftforge.items.CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) { if (facing == null) return handlers[2].cast(); else if (facing.getAxis().isVertical()) return handlers[0].cast(); else if (facing.getAxis().isHorizontal()) return handlers[1].cast(); } return super.getCapability(capability, facing);   EntityEquipmentInvWrapper public static LazyOptional<IItemHandlerModifiable>[] create(LivingEntity entity) { @SuppressWarnings("unchecked") LazyOptional<IItemHandlerModifiable>[] ret = new LazyOptional[3]; ret[0] = LazyOptional.of(() -> new EntityHandsInvWrapper(entity)); ret[1] = LazyOptional.of(() -> new EntityArmorInvWrapper(entity)); ret[2] = LazyOptional.of(() -> new CombinedInvWrapper(ret[0].orElse(null), ret[1].orElse(null))); return ret; }
    • Klarks
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks · Posted 11 minutes ago

      If super.getCapability give me the default handlers so what new EntityArmorInvWrapper(entity) do 
    • mightymoy
      Cant craft items in modded server

      By mightymoy · Posted 1 hour ago

      Me and my friends started a modded server the version is 1.16.1 and we have 23 mods installed on it. We were playing it in vanilla at first but then after some hours we started to add mods onto the server (not sure if this caused the issue) we noticed that somethings were not coming up in the crafting table output box for example I was trying to make a bowl but the bowl wasn't popping out to put it in my inventory we arent sure what's the issue since in single player we can craft both the modded items and vanilla items but in the server we cant craft them at all. I've been searching for a solution all day I cant seem to find anyone else talk about it or have a solution to it.    On the right is the modded server trying to craft a modded item but not showing and on the right is in single player mode doing the same thing and getting the item.   I would post the server log but I'm not sure how to get the log either if someone can tell me how to retrieve the log as well that would be much appreciated.
    • Draco18s
      What is the method to left click?

      By Draco18s · Posted 1 hour ago

      There isn't one. Documentation (such as there is) is all inside the code itself.
    • Gubipe
      What is the method to left click?

      By Gubipe · Posted 1 hour ago

      can you link me to the documentation page for it?
  • Topics

    • Klarks
      24
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks
      Started 21 hours ago

    • mightymoy
      0
      Cant craft items in modded server

      By mightymoy
      Started 1 hour ago

    • Gubipe
      3
      What is the method to left click?

      By Gubipe
      Started 5 hours ago

    • schmiddi_0
      16
      Minecraft crashes while launching - failed to find service port for display

      By schmiddi_0
      Started December 14, 2020

    • Silivek
      1
      Mod won't load when in dev environment

      By Silivek
      Started 10 hours ago

  • Who's Online (See full list)

    • bananapizzuh
    • hijackster99
    • LenMay2003
    • Jake_Titan
    • imawindow
    • Otep
    • Gubipe
    • ChampionAsh5357
    • ZetaLuxray
    • Klarks
  • All Activity
  • Home
  • Forge Mods
  • Mods
  • launcher.java.lang.reflect.InvocationTargetException
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community