Jump to content

Recommended Posts

Posted (edited)

Hey everyone,

 

I have always wanted to start modding minecraft but never gotten past the point of setting up an enviornment. Typically, I would try it on my desktop which is windows but right now I am using my macbook. I am using eclipse and I am attempting to mod on the latest version on minecraft 1.15.2 and I have downloaded the latest version of forge mdk. I have gone over the read me instructions multiple times I have even fully uninstalled and reinstalled java on my mac twice. Currently, from what I can tell, I am using Java 8 as its required, the version given by command prompt is 1.8.0_251 (using java -version). I have even set my java_home to point to this version of java and it was successful. 

 

When I get to the point of actually building and running the example mod provided by forge I get a NoSuchMethodError for the method rewind in ByteBuffer. I will post the whole log below but everything online says that this is because the code is compiling on a Java version later than Java 8. I have no idea how this is possible if I do not even have any other Java version on my mac. Can someone please explain to me how I could build a project on a java version that I dont even have installed? I apologize for coming here with such a basic set up question, even though it has been asked many times before on the internet. But I assure you I have followed all the tutorials I can find and many are out of date. Also, I feel like all of the forum posts I saw that said it was compiling on the wrong version never explained how to change this. I went into builder and changed the path before and just ran into more problems. I also went into compiler and pointed it to my javac for 1.8.0 and it was failing to compile due to missing variables or something.

 

Any help would be appreciated, I just want to start messing around with minecraft modding already. Thanks! 

 

**EDIT: Also, I am on macOS Catalina v 10.15.4 But I do not think that is the reason it is failing.

 

Here is the crash log..

 

Quote

// There are four lights!

Time: 4/15/20 8:50 PM
Description: Initializing game

java.lang.NoSuchMethodError: java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer;
    at net.minecraft.client.MainWindow.loadIcon(MainWindow.java:188) ~[forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.MainWindow.setWindowIcon(MainWindow.java:152) ~[forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:380) ~[forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:141) ~[forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_251] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_251] {}
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_251] {}
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102) [forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at net.minecraft.client.MainWindow.loadIcon(MainWindow.java:188)
    at net.minecraft.client.MainWindow.setWindowIcon(MainWindow.java:152)
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:380)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.main.Main.main(Main.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Mac OS X (x86_64) version 10.15.4
    Java Version: 1.8.0_251, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 385393384 bytes (367 MB) / 1054867456 bytes (1006 MB) up to 1908932608 bytes (1820 MB)
    CPUs: 8
    JVM Flags: 1 total; -Xss1M
    Launched Version: MOD_DEV
    Backend library: LWJGL version 3.2.1 build 12
    Backend API: Intel(R) Iris(TM) Plus Graphics 645 GL version 2.1 INTEL-14.5.22, Intel Inc.
    GL Caps: 
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    CPU: <unknown>

 

Edited by Dizzylizard22

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



×
×
  • Create New...

Important Information

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