Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import py4j.GatewayServer; // ERROR: The import py4j cannot be resolved
- public class TestPython {
- public int addition(int first, int second) {
- return first + second;
- }
- public static void main(String[] args) {
- TestPython app = new TestPython();
- // app is now the gateway.entry_point
- GatewayServer server = new GatewayServer(app);
- server.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement