Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run this. #10

Open
wgaylord opened this issue Sep 18, 2020 · 0 comments
Open

Unable to run this. #10

wgaylord opened this issue Sep 18, 2020 · 0 comments

Comments

@wgaylord
Copy link

I built the the current version using gradle build.

I can't directly run the jar.

chibill@jwg1:/data_pool/Minecraft/MinecraftMappings/build/libs$ java  -jar mapping-generator-1.0-SNAPSHOT.jar 
no main manifest attribute, in mapping-generator-1.0-SNAPSHOT.jar

And when I try to run it another way I get an error about Kotlins libraries missing.

chibill@jwg1:/data_pool/Minecraft/MinecraftMappings/build/libs$ java -cp mapping-generator-1.0-SNAPSHOT.jar MainKt
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
	at MinecraftVersion.write(version.kt)
	at MainKt.main(main.kt:17)
	at MainKt.main(main.kt)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 3 more

I think this is due to the jar only containing the compile kotlin and none of the libraries require to run it. Any suggestions on how to execute it?

pisaiah referenced this issue in CardboardPowered/MinecraftMappings Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant