summaryrefslogtreecommitdiff
path: root/Examples/python/java/runme.py
blob: 0cec8a7cb3c52eb0aa2799268658175c6cb48eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()