Jump to content

Won't launch the game


chaz2117

Recommended Posts

I can't get the game to launch with my mod and it always says this

 

WARNING: Unknown module: cpw.mods.securejarhandler specified to --add-exports
WARNING: Unknown module: cpw.mods.securejarhandler specified to --add-opens
Exception in thread "main" java.lang.ExceptionInInitializerError
    at cpw.mods.jarhandling.impl.Jar.<init>(Jar.java:90)
    at cpw.mods.jarhandling.SecureJar.from(SecureJar.java:58)
    at cpw.mods.jarhandling.SecureJar.from(SecureJar.java:50)
    at cpw.mods.jarhandling.SecureJar.from(SecureJar.java:42)
    at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:59)
Caused by: java.util.NoSuchElementException: No value present
    at java.base/java.util.Optional.orElseThrow(Optional.java:377)
    at cpw.mods.jarhandling.impl.SecureJarVerifier.<clinit>(SecureJarVerifier.java:16)
    ... 5 more
 

it would work on my other computer but when i exported it as an archive and imported it back into my current computer it stopped being able to launch it

Edited by chaz2117
Link to comment
Share on other sites

I did realise that was definitely the wrong one

[14Aug2021 17:01:16.573] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, chaz2117, --version, 1.17.1-forge-37.0.27, --gameDir, C:\Users\User\AppData\Roaming\.minecraft, --assetsDir, C:\Users\User\AppData\Roaming\.minecraft\assets, --assetIndex, 1.17, --uuid, 42b321c1685e421b9edb3c5d6cf86472, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, forgeclient, --fml.forgeVersion, 37.0.27, --fml.mcVersion, 1.17.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210706.113038]
[14Aug2021 17:01:16.590] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.0.7+91+master.8569cdf starting: java version 16.0.1 by Microsoft
[14Aug2021 17:01:21.440] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, 1.17.1-forge-37.0.27, --gameDir, C:\Users\User\AppData\Roaming\.minecraft, --assetsDir, C:\Users\User\AppData\Roaming\.minecraft\assets, --uuid, 42b321c1685e421b9edb3c5d6cf86472, --username, chaz2117, --assetIndex, 1.17, --accessToken, ????????, --userType, mojang, --versionType, release]
[17:01:34] [Render thread/WARN]: Assets URL 'union:/C:/Users/User/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.17.1-20210706.113038/client-1.17.1-20210706.113038-srg.jar%2352!/assets/.mcassetsroot' uses unexpected schema
[17:01:34] [Render thread/WARN]: Assets URL 'union:/C:/Users/User/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.17.1-20210706.113038/client-1.17.1-20210706.113038-srg.jar%2352!/data/.mcassetsroot' uses unexpected schema
[14Aug2021 17:01:34.239] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[17:01:35] [Render thread/INFO]: Setting user: chaz2117
[17:01:35] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 SNAPSHOT
[17:01:40] [modloading-worker-1/INFO]: Forge mod loading, version 37.0.27, for MC 1.17.1 with MCP 20210706.113038
[17:01:40] [modloading-worker-1/INFO]: MinecraftForge v37.0.27 Initialized
[14Aug2021 17:01:43.495] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
[17:01:45] [Render thread/INFO]: Reloading ResourceManager: Mod Resources, Default
[14Aug2021 17:01:46.590] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json
[14Aug2021 17:01:46.976] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: BETA Current: 37.0.27 Target: null
[17:02:09] [Render thread/INFO]: OpenAL initialized.
[17:02:09] [Render thread/INFO]: Sound engine started

 

Edited by chaz2117
Link to comment
Share on other sites

5 minutes ago, diesieben07 said:

This will not work at all.

Use a Git repo. If you must use a zip file, copy the files that are not in the .gitignore into the zip file only. Then set up the workspace like normal, as described in the Docs.

so I will have to make the zip again just not select the .gitignore?

 

Link to comment
Share on other sites

1 minute ago, diesieben07 said:

No. Make a zip and select everything that is not listed in the .gitignore.

Really this is the gradle wrapper files, the build.gradle, the gralde.properties and your src folder (and anything else you might want to keep, but definitely not the build or .gradle folders). Then import the project as normal.

But seriously, just use Git.

ok I'll try that then. Thanks

Link to comment
Share on other sites

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.