This repository was archived by the owner on Feb 4, 2022. It is now read-only.
File tree 7 files changed +199
-145
lines changed
7 files changed +199
-145
lines changed Original file line number Diff line number Diff line change 8
8
{
9
9
"data" : {
10
10
"text/plain" : [
11
- " null "
11
+ " No Outputs "
12
12
]
13
13
},
14
14
"execution_count" : 1 ,
55
55
{
56
56
"data" : {
57
57
"text/plain" : [
58
- " null "
58
+ " No Outputs "
59
59
]
60
60
},
61
61
"execution_count" : 2 ,
105
105
{
106
106
"data" : {
107
107
"text/plain" : [
108
- " null "
108
+ " No Outputs "
109
109
]
110
110
},
111
111
"execution_count" : 3 ,
189
189
"source" : [
190
190
" ij.op().help(\" eval\" )"
191
191
]
192
+ },
193
+ {
194
+ "cell_type" : " code" ,
195
+ "execution_count" : null ,
196
+ "metadata" : {},
197
+ "outputs" : [],
198
+ "source" : []
192
199
}
193
200
],
194
201
"metadata" : {
195
202
"kernelspec" : {
196
- "display_name" : " SciJava " ,
203
+ "display_name" : " Scijava " ,
197
204
"language" : " groovy" ,
198
205
"name" : " scijava"
199
206
},
Original file line number Diff line number Diff line change 3
3
{
4
4
"cell_type" : " markdown" ,
5
5
"metadata" : {},
6
- "source" : []
6
+ "source" : [
7
+ " Try to load the `JdbcTemplate` class. It should fail."
8
+ ]
9
+ },
10
+ {
11
+ "cell_type" : " code" ,
12
+ "execution_count" : 17 ,
13
+ "metadata" : {},
14
+ "outputs" : [
15
+ {
16
+ "name" : " stdout" ,
17
+ "output_type" : " stream" ,
18
+ "text" : [
19
+ " java.lang.ClassNotFoundException: org.springframework.jdbc.core.JdbcTemplate\n "
20
+ ]
21
+ },
22
+ {
23
+ "data" : {
24
+ "text/plain" : [
25
+ " No Outputs"
26
+ ]
27
+ },
28
+ "execution_count" : 17 ,
29
+ "metadata" : {},
30
+ "output_type" : " execute_result"
31
+ }
32
+ ],
33
+ "source" : [
34
+ " try {\n " ,
35
+ " Class.forName(\" org.springframework.jdbc.core.JdbcTemplate\" );\n " ,
36
+ " } catch (ClassNotFoundException ex) {\n " ,
37
+ " println ex\n " ,
38
+ " }"
39
+ ]
40
+ },
41
+ {
42
+ "cell_type" : " markdown" ,
43
+ "metadata" : {},
44
+ "source" : [
45
+ " Now, grab the related artifact with the [grab mechanism](https://github.com/scijava/scijava-grab)."
46
+ ]
47
+ },
48
+ {
49
+ "cell_type" : " code" ,
50
+ "execution_count" : null ,
51
+ "metadata" : {},
52
+ "outputs" : [],
53
+ "source" : [
54
+ " #@dependency(\" org.springframework:spring-orm:3.2.5.RELEASE\" )"
55
+ ]
56
+ },
57
+ {
58
+ "cell_type" : " markdown" ,
59
+ "metadata" : {},
60
+ "source" : [
61
+ " You can now load the `JdbcTemplate` class."
62
+ ]
7
63
},
8
64
{
9
65
"cell_type" : " code" ,
12
68
"collapsed" : true
13
69
},
14
70
"outputs" : [],
15
- "source" : []
71
+ "source" : [
72
+ " import org.springframework.jdbc.core.JdbcTemplate\n " ,
73
+ " obj = new JdbcTemplate();"
74
+ ]
16
75
}
17
76
],
18
77
"metadata" : {
19
78
"kernelspec" : {
20
- "display_name" : " SciJava " ,
79
+ "display_name" : " Scijava " ,
21
80
"language" : " groovy" ,
22
81
"name" : " scijava"
23
82
},
You can’t perform that action at this time.
0 commit comments