Skip to content

Unable to run this. #10

@wgaylord

Description

@wgaylord

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions