Command fails to run on Git Bash but works on Windows Command Prompt

624 views
Skip to first unread message

Sushruth Nagaraj

unread,
Mar 24, 2022, 11:25:02 AM3/24/22
to git-for-windows
Hey everyone, I'm trying to run a project (It's a performance benchmarking tool called SBK, more info at https://github.com/kmgowda/SBK) in Git Bash, but I'm getting an error that says:
"Error: Could not find or load main class io.sbk.main.SbkMain
Caused by: java.lang.ClassNotFoundException: io.sbk.main.SbkMain"

I'm trying to use the command "./build/install/sbk/bin/sbk" to run the project.

This command works perfectly fine in Windows Command Prompt, but it's not working on Git Bash.

I tried to search online and found that others are also experiencing the same issue, but don't know why.
  1. https://stackoverflow.com/questions/39419582/error-could-not-find-or-load-main-class-org-apache-jackrabbit-vault-cli-vaultfs
  2. https://stackoverflow.com/questions/46066210/failed-to-run-a-java-app-with-git-bash
Any help will be appreciated, thanks in advance.

Alexander Ponti

unread,
Aug 12, 2024, 12:10:29 PM8/12/24
to git-for-windows
i have the same problem..Were you able to resolve this?
Reply all
Reply to author
Forward
0 new messages