Jump to content

What is wrong here?


Recommended Posts

Hello. Im using Visual Studio Code to make a Minecraft Mod. I know It was made for Java 11+, But i would like to know what my problem is wrong here.

I tried my hardest to make it Java 8 but i might of done it wrong.

Terminal Code: 

Spoiler

C:; cd 'C:\Users\----\Desktop\Visual Studio Code\Stuff needed\FirstMod\run'; ${env:MCP_TO_SRG}='C:\Users\----\Desktop\Visual Studio Code\Stuff needed\FirstMod\build\createSrgToMcp\output.srg'; ${env:MOD_CLASSES}='C:\Users\----\Desktop\Visual Studio Code\Stuff needed\FirstMod\bin\main;C:\Users\----\Desktop\Visual Studio Code\Stuff needed\FirstMod\bin\main'; ${env:mainClass}='net.minecraft.launchwrapper.Launch'; ${env:MCP_MAPPINGS}='snapshot_20171003-1.12'; ${env:FORGE_VERSION}='14.23.5.2855'; ${env:assetIndex}='1.12'; ${env:assetDirectory}='C:\Users\----\.gradle\caches\forge_gradle\assets'; ${env:nativesDirectory}='C:\Users\----\Desktop\Visual Studio Code\Stuff needed\FirstMod\build\natives'; ${env:FORGE_GROUP}='net.minecraftforge'; ${env:tweakClass}='net.minecraftforge.fml.common.launcher.FMLTweaker'; ${env:MC_VERSION}='1.12.2'; & 'c:\Users\----\.vscode\extensions\vscjava.vscode-java-debug-0.34.0\scripts\launcher.bat' 'C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin\java.exe' '-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:57658' '-Dforge.logging.console.level=debug' '-Dforge.logging.markers=SCAN,REGISTRIES,REGISTRYDUMP' '-Dfile.encoding=UTF-8' '@C:\Users\----\AppData\Local\Temp\cp_92knomzn1txoh5kwjv87z14fv.argfile' 'net.minecraftforge.legacydev.MainClient' [2021-06-04 17:37:16] [INFO ] Natives: C:\Users\----\Desktop\Visual Studio Code\Stuff needed\FirstMod\build\natives WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by net.minecraftforge.legacydev.MainClient (file:/C:/Users/----/.gradle/caches/modules-2/files-2.1/net.minecraftforge/legacydev/0.2.3.1/f2cd4a8c9f09faf1c1e4a9a4c65df36e634f95db/legacydev-0.2.3.1-fatjar.jar) to method java.lang.ClassLoader.initializePath(java.lang.String) WARNING: Please consider reporting this to the maintainers of net.minecraftforge.legacydev.MainClient WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [2021-06-04 17:37:16] [INFO ] Main Class: net.minecraft.launchwrapper.Launch [2021-06-04 17:37:16] [INFO ] Srg2Mcp: C:\Users\----\Desktop\Visual Studio Code\Stuff needed\FirstMod\build\createSrgToMcp\output.srg [2021-06-04 17:37:16] [INFO ] Extra: [] [2021-06-04 17:37:16] [INFO ] Running with arguments: [--version, 1.12.2, --assetIndex, 1.12, --assetsDir, C:\Users\----\.gradle\caches\forge_gradle\assets, --accessToken, {REDACTED}, --userProperties, [], --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker] Exception in thread "main" 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.legacydev.Main.start(Main.java:86) at net.minecraftforge.legacydev.MainClient.main(MainClient.java:29) 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

 hope someone can help

Edited by ArtOfCoding
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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