-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtest_scyjava.py
More file actions
24 lines (18 loc) · 850 Bytes
/
test_scyjava.py
File metadata and controls
24 lines (18 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import jnius_config
jnius_config.add_classpath('/home/phil/git/scyjava2/groovy-3.0.0-alpha-2.jar')
jnius_config.add_classpath('/home/phil/git/scyjava2/ivy-2.5.0-rc1.jar')
import scyjava
from jnius.reflect import Modifier
print(Modifier)
scyjava.dependency(groupId='net.imglib2', artifactId='imglib2', version='4.6.0')
# scyjava.dependency(groupId='net.imglib2', artifactId='imglib2-algorithm', version='0.5.0')
# scyjava.dependency(groupId='net.imglib2', artifactId='imglib2-realtransform')
scyjava.dependency(groupId='HTTPClient', artifactId='HTTPClient', version='0.3-3')
System = scyjava.import_class('java.lang.System')
grapes = scyjava.list_grapes()
for grape in grapes.items():
print(grape)
ArrayList = scyjava._autoclass('java.util.ArrayList')
Interval = scyjava.import_class('net.imglib2.Interval')
print(Interval)
print(ArrayList)