java lang nosuchmethoderror minecraft

Details

Description

This issue only happens with non-authorized versions of Minecraft, or otherwise modified launchers. If you wish to purchase the full game, please visit the Minecraft Store.
We will not provide support for pirated versions of the game, these versions are modified and may contain malware.

If you have already purchased the game, you should redownload the launcher from here; if you prefer the older launcher, you can download it from the alternative download page.

I have not been having an issue with the Minecraft launcher only until today, whenever the launcher starts to unpack its natives, it encounters a fatal error.

not sure whether is it because some files on my .minecraft file are corrupted, but it seems that it had something to do with launcher reading the library files

like I said previously, it was working find until today, so it wasn’t hardware related, since I hadn’t modified any of my drivers. I’ve updated java and reinstalled the launcher a few times after I got the message and unfortunately, there was still no fix, still displays that message.

I am unable to switch over to an exe launcher by the way due to reasons.

Is there any way to fix the bug? Please respond as soon as possible, since this bug makes it impossible to open Minecraft

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Share This Page

The administration works very hard to bring you unique, originally created content. Purchasing ranks, boosters, and mystery boxes helps support us in making more, higher quality content.

all. I’ve been having this issue where apparently I’m referencing a method that doesn’t exist. The IDE doesn’t flag anything as bad, so I am a little lost. I’ve tried a couple of things, but they don’t seem to work. This is a work-in-progress, so not everything is finished, but it should still work. Anyways, here is the main class:

And, of course, the «non-existent» class with the «non-existent» method:

And. drumroll, please! dum da-dum The all-powerful errors:

Thanks for solving my stupid and hopefully easily-fixed problems, guys! You are the best!

1 Answer 1

Try removing the constructor from the listener.

In your main class:

In your listener, remove this:

Also, change out all the

NEVER STORE PLAYER AND LOCATION OBJECTS! Just like the Block object, it’s really heavy and will cause memory leaks. If you don’t want tons of lag, I’d recommend you to convert the object to a string/UUID.

Player: Player.getUniqueId() will give you the UUID, then you can just do Bukkit.getPlayer(UUID) to get the Player object again (remember to check that object is not null).

Location: Store the World name/UID, x, y, z, yaw, pitch in a string seperated by a character. Turn it into a object by splitting the string and instantiate a new Location. If you are just going to keep location of blocks, then you don’t need yaw and pitch for this case (it has to do with which way a player is looking).

Please remember private/public/protected flags in your classes.

You should fix the deprecations as it will lose support pretty quick. It’s losing support for the reason that there is a better solution.

Also, why store the ChatColors in a variable?

Оцените статью