MinecraftMappings icon indicating copy to clipboard operation
MinecraftMappings copied to clipboard

Unable to run this.

Open wgaylord opened this issue 5 years ago • 0 comments

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?

wgaylord avatar Sep 18 '20 15:09 wgaylord