How can i set default java scripts in custom keyword?

In katalon tool the default keyword scripts in groovy Screenshot by Lightshot , and while i am converting into java code my facing errors Screenshot by Lightshot.

Hi… i am also getting the same problem,will you please let me know how to change custom keywords from default Groovy code to java code

Thanks

Please use ; in the end of syntax. As there is not ‘as’ keyword in Java you need to remove them and create an instance in code as you do in java.

Hi,

Convert it to as java file http://prntscr.com/fb4ci9 , http://prntscr.com/fb4ctc . And let me know how configure java as default script in katalon.

Hi there,

I don’t observe the same issue like you: http://prntscr.com/fb3m8e. Can you send me your project, or show me what do you observe from ‘Problem’ tab?

Thanks