summaryrefslogtreecommitdiff
path: root/Examples/python/java/runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/java/runme.py')
-rw-r--r--Examples/python/java/runme.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Examples/python/java/runme.py b/Examples/python/java/runme.py
new file mode 100644
index 0000000..0cec8a7
--- /dev/null
+++ b/Examples/python/java/runme.py
@@ -0,0 +1,16 @@
+from example import *
+
+JvCreateJavaVM(None)
+JvAttachCurrentThread(None, None)
+
+e1 = Example(1)
+e2 = Example(2)
+
+print e1.Add(1,2)
+print e1.Add(1.0,2.0)
+e3 = e1.Add(e1,e2)
+print e3.mPublicInt
+
+print e1.Add("1","2")
+
+JvDetachCurrentThread()