Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make karate unix launcher work from any directory #1529

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

parched
Copy link
Contributor

@parched parched commented Mar 21, 2021

This change means you can run the karate script from any directory, e.g., path/to/karate or if you add it to PATH it should work too.

Previously this would happen.

$ karate-1.0.0/karate --help
Error: Could not find or load main class com.intuit.karate.Main
Caused by: java.lang.ClassNotFoundException: com.intuit.karate.Main

@ptrthomas ptrthomas merged commit 631884f into karatelabs:develop Mar 21, 2021
@ptrthomas
Copy link
Member

@parched thanks 👍 - do take a look at the jbang option: https://github.com/intuit/karate/tree/master/karate-netty#jbang - would be good to get your feedback on that - we're wondering if in the future, the VS Code extension can "install" karate that way, it may be an interesting option

@parched
Copy link
Contributor Author

parched commented Mar 21, 2021

No problem. jbang does look interesting, but for me personally that's just an extra thing to install. I intend to try the VS Code extension, but I need to have everything work from outside the IDE, so pointing to extension to the preinstalled karate is fine for my use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants