Java Lite-client wrapper uses JNA to access methods in native lite-client binary.
<dependency>
<groupId>io.github.neodix42</groupId>
<artifactId>lite-client</artifactId>
<version>0.8.2</version>
</dependency>
<dependency>
<groupId>io.github.neodix42.ton4j</groupId>
<artifactId>lite-client</artifactId>
<version>0.8.2</version>
</dependency>
LiteClient liteClient=LiteClient.builder()
.pathToLiteClientBinary(pathToLiteClient)
.testnet(true)
.pathToGlobalConfig(pathToGlobalConfig)
.build();
String stdout=liteClient.executeLast();
More examples in LiteClientTest class.