How to add Java files to Katalon studio or change the prefered language to java


Is it possible to change the language preference in Katalon studio from groovy to java?

Im using some methods from the twitter4j library and one of the methods use a do…while and groovy does not support this hence why the question is being asked.

Thank you.

I only got the answer for this…we just need to copy any paste the import files.

Ex:-import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

like this i have added all the libraries and it is working.

You said that katalon can work with Java also ,then how to add the library ???