Unable to use read(‘classpath:’) when running tests with standalone karate.jar

Can you try the ZIP release and if you open the karate batch file you will see this:

java -cp karate.jar:. com.intuit.karate.Main $*

So the trick to setting a custom classpath is to use the com.intuit.karate.Main entry point and in the above example the current dir is also added to the classpath.

It would be great if you try the current RC version (0.9.5.RC3) to ensure we have everything working as expected.

For more information, see this part of the docs: https://github.com/intuit/karate/tree/develop/karate-netty#custom-classpath

Leave a Comment