Java classloader机制测试命令

cd /d E:\Study\Java\ThreadStudy\ThreadStudy\src\

javac HelloLoader.java

java cn/hacker/cas/FindClassOrder


-----------------------------------------------------------------------------------------------------------------------------------------

cd /d E:\Study\Java\ThreadStudy\ThreadStudy\src

javac cn\hacker\cas\FindClassOrder.java

java -Xbootclasspath/a:E:\Study\Java\ThreadStudy\ThreadStudy\src\ cn/hacker/cas/FindClassOrder


java  -Xbootclasspath/p:"%JAVA_HOME%"/jre/lib/rt.jar;E:\Study\Java\ThreadStudy\ThreadStudy\src\HelloLoader.jar cn/hacker/cas/FindClassOrder

 

Java类的热替换:https://www.ibm.com/developerworks/cn/java/j-lo-hotswapcls/index.html

posted @ 2017-06-16 18:12  Tea  阅读(275)  评论(0编辑  收藏  举报