Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import py4j.GatewayServer; // ERROR: The import py4j cannot be resolved
  2.  
  3. public class TestPython {
  4.  
  5. public int addition(int first, int second) {
  6. return first + second;
  7. }
  8.  
  9. public static void main(String[] args) {
  10. TestPython app = new TestPython();
  11. // app is now the gateway.entry_point
  12. GatewayServer server = new GatewayServer(app);
  13. server.start();
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement