Solarex's Blog

我只想过,平平淡淡的生活,欲望啊,请放过脆弱的我

Java Class Loaded and Initialized

| Comments

java

class loaded and initialized

java -verbose:class -classpath . org.solarex.TestClassLoader get information about each class loaded.The “-verbose:class” option displays information about each class loaded.

1
2
3
4
5
6
package org.solarex.test;
public class A{
  public void method(){
      System.out.println("inside of A");
  }
}
1
2
3
4
5
6
7
8
package org.solarex.test;
public void TestLoader{
  public static void main(String[] args){
      System.out.println("Hello,world\n");
      // A aInstance = new A();
      // aInstance.method();
  }
}  

javac -d . *.java,java -verbose:class -classpath . org.solarex.test.TestLoader得到结果:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
#loader.before
[Opened /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Object from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.Serializable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Comparable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.CharSequence from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.String from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.GenericDeclaration from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Type from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.AnnotatedElement from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Class from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Cloneable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ClassLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.System from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Throwable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Error from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ThreadDeath from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Exception from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.RuntimeException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.ProtectionDomain from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.AccessControlContext from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ClassNotFoundException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.LinkageError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.NoClassDefFoundError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ClassCastException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ArrayStoreException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.VirtualMachineError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.OutOfMemoryError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StackOverflowError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.IllegalMonitorStateException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.Reference from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.SoftReference from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.WeakReference from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.FinalReference from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.PhantomReference from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.Finalizer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Runnable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Thread from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Thread$UncaughtExceptionHandler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ThreadGroup from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Map from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Dictionary from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Hashtable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Properties from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.AccessibleObject from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Member from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Field from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Method from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Constructor from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.MagicAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.MethodAccessor from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.MethodAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.ConstructorAccessor from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.ConstructorAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.DelegatingClassLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.ConstantPool from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.FieldAccessor from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.FieldAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.UnsafeFieldAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.UnsafeStaticFieldAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Appendable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.AbstractStringBuilder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StringBuffer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StringBuilder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StackTraceElement from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.Buffer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.AtomicLong from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.AtomicLongCSImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.PostVMInitHook from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Boolean from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Character from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Number from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Float from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Double from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Byte from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Short from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Integer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Long from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.NullPointerException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ArithmeticException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.ObjectStreamField from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Comparator from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.String$CaseInsensitiveComparator from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.Guard from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.Permission from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.BasicPermission from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.RuntimePermission from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.AbstractMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.SoftCache from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.ReferenceQueue from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.ReferenceQueue$Null from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.ReferenceQueue$Lock from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.HashMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Map$Entry from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.HashMap$Entry from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.AccessController from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.JavaSecurityAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.AccessControlContext$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.SharedSecrets from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Unsafe from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.IncompatibleClassChangeError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.NoSuchMethodError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.Reflection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Collections from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Iterable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Collection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Set from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.AbstractCollection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.AbstractSet from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Collections$EmptySet from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.RandomAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.List from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.AbstractList from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Collections$EmptyList from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Collections$EmptyMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Collections$ReverseComparator from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Collections$SynchronizedMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.ReflectPermission from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.PrivilegedAction from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.ReflectionFactory$GetReflectionFactoryAction from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Vector from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Stack from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.ReflectionFactory from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.Reference$Lock from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.Reference$ReferenceHandler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ref.Finalizer$FinalizerThread from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Enumeration from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Hashtable$EmptyEnumerator from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Iterator from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Hashtable$EmptyIterator from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Hashtable$Entry from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.Charset from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.spi.CharsetProvider from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.FastCharsetProvider from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.StandardCharsets from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.util.PreHashedMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.StandardCharsets$Aliases from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.StandardCharsets$Classes from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.StandardCharsets$Cache from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ThreadLocal from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.atomic.AtomicInteger from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Class$3 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Modifier from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.LangReflectAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.ReflectAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StringValue from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Arrays from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Math from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.HistoricallyNamedCharset from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.Unicode from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.UTF_8 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Class$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.ReflectionFactory$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.NativeConstructorAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.DelegatingConstructorAccessorImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.VM from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StringCoding from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ThreadLocal$ThreadLocalMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ThreadLocal$ThreadLocalMap$Entry from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StringCoding$StringDecoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.CharsetDecoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.UTF_8$Decoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.CodingErrorAction from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.ByteBuffer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.HeapByteBuffer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.Bits from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.JavaNioAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.Bits$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.ByteOrder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Readable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.CharBuffer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.HeapCharBuffer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.CoderResult from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.CoderResult$Cache from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.CoderResult$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.CoderResult$2 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Version from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.JavaLangAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.System$2 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Runtime from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.File from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FileSystem from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.UnixFileSystem from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.ExpiringCache from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.LinkedHashMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.ExpiringCache$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.LinkedHashMap$Entry from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.security.action.GetPropertyAction from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.JavaIOFileAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.File$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.jkernel.DownloadManager from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.jkernel.DownloadManager$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.jkernel.DownloadManager$2 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.StringCoding$StringEncoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.nio.charset.CharsetEncoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.UTF_8$Encoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ClassLoader$3 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.ExpiringCache$Entry from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ClassLoader$NativeLibrary from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.Closeable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.InputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FileInputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FileDescriptor from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.JavaIOFileDescriptorAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FileDescriptor$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.Flushable from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.OutputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FileOutputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FilterInputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.BufferedInputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.reflect.misc.ReflectUtil from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FilterOutputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.PrintStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.BufferedOutputStream from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.Writer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.OutputStreamWriter from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.StreamEncoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.BufferedWriter from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Terminator from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.SignalHandler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Terminator$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Signal from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.NativeSignalHandler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.OSEnvironment from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Compiler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Compiler$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Launcher from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URLStreamHandlerFactory from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$Factory from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.SecureClassLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URLClassLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$ExtClassLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.security.util.Debug from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Package from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URL from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.CodeSource from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Void from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.cert.Certificate from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.ClassFormatError from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.IllegalArgumentException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.IOException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.AssertionStatusDirectives from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.JavaNetAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URLClassLoader$7 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.PermissionCollection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.StringTokenizer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.PrivilegedExceptionAction from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$ExtClassLoader$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.MetaIndex from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.Reader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.BufferedReader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.InputStreamReader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FileReader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.cs.StreamDecoder from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.ArrayList from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Array from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.net.www.ParseUtil from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.BitSet from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.ObjectStreamClass from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URL$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.Locale from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.ConcurrentMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.locks.Lock from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.locks.ReentrantLock from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$Segment from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.locks.AbstractOwnableSynchronizer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.locks.ReentrantLock$Sync from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.locks.ReentrantLock$NonfairSync from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer$Node from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$HashEntry from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.CharacterDataLatin1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.Parts from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URLStreamHandler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.net.www.protocol.file.Handler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.HashSet from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.net.www.protocol.jar.Handler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$AppClassLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$AppClassLoader$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.SystemClassLoaderAction from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URLClassLoader$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.net.util.URLUtil from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$3 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$Loader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$JarLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.PrivilegedActionException from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$FileLoader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.Resource from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$FileLoader$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.nio.ByteBuffered from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.Permissions from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.URLConnection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.net.www.URLConnection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.net.www.protocol.file.FileURLConnection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.ContentHandler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.net.UnknownContentHandler from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.net.www.MessageHeader from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FilePermission from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FilePermission$1 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.Policy from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.security.provider.PolicyFile from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.Policy$UnsupportedEmptyCollection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.util.concurrent.atomic.AtomicReference from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.Policy$PolicyInfo from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.io.FilePermissionCollection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.AllPermission from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.UnresolvedPermission from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.BasicPermissionCollection from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded sun.misc.JavaSecurityProtectionDomainAccess from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.ProtectionDomain$2 from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.ProtectionDomain$Key from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.security.Principal from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded org.solarex.test.TestLoader from file:/home/hrh/tmp/]
Hello,world
[Loaded java.lang.Shutdown from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Shutdown$Lock from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
1
2
3
4
5
6
7
8
9
10
#loader.after
#diff loader.before loader.after
...
[Loaded java.security.Principal from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded org.solarex.test.TestLoader from file:/home/hrh/tmp/]
Hello,world
[Loaded org.solarex.test.A from file:/home/hrh/tmp/]
inside of A
[Loaded java.lang.Shutdown from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]
[Loaded java.lang.Shutdown$Lock from /opt/jvm/jdk6u45/jdk1.6.0_45/jre/lib/rt.jar]

In summary,a class is loaded:

  • when the new bytecode is executed,eg. SomeClass sc = new SomeClass()
  • when the bytecodes make a static reference to a class,eg. System.out

A class is initialized when a symbol in the class is first used.When a class is loaded it is not initialized.JVM will initialize superclass and fields in textual order, initialize static,final fields first, and give every field a default value before initialization.

Comments