Skip to content

"Could not find or load main class org.jbake.launcher.Main" when running Jbake installed with Sdkman on Msys2  #781

Open
@desmond27

Description

@desmond27

I have been doing some tests to see if this works on Msys2. I created a directory and ran jbake -i and I get the following error:

REDACTED@REDACTED MSYS /c/Users/REDACTED/temp/jbake-test
$ jbake -i
Error: Could not find or load main class org.jbake.launcher.Main
Caused by: java.lang.ClassNotFoundException: org.jbake.launcher.Main

Jbake was installed to this path:

$ which jbake
/home/REDACTED/.sdkman/candidates/jbake/current/bin/jbake

Could someone check what's the issue here?

Edit: FWIW, the JVM used to run Jbake was also installed via Sdkman.

$ which java
/home/REDACTED/.sdkman/candidates/java/current/bin/java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions