A bit frustrated that can't make this work, as it is simply documented on this link https://github.com/karatelabs/karate#calling-java
Tried to create from scratch using maven archetype and the standalone jar just to make sure its not about folder structure. Please see below screenshots:
Update: It works after removing .java in the parameter value.
instead of * def helper = Java.type('examples.users.Helper.java')
changed it to * def helper = Java.type('examples.users.Helper')
But only works when run as cucumber feature from eclipse. Still cant make it work in vscode.
It works after removing .java in the parameter value.