Skip to content

ClassNotFoundException after importing library #38

@MaaxGr

Description

@MaaxGr

After i have added this library to gradle:

implementation group: 'at.favre.lib', name: 'bcrypt', version: '0.9.0'

build the Project into a JAR and run it

java -jar build/libs/example-0.0.1.jar

i get the following error:

Error: Could not find or load main class io.ktor.server.netty.EngineMain
Caused by: java.lang.ClassNotFoundException: io.ktor.server.netty.EngineMain

If i comment out only your dependency everything is fine.
Seems to be connected to issue #30. If i manually delete everything out of the META-INF Folder (except MANIFEST.MF) everything works again.

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