首页 > 代码库 > Java classloader机制测试命令

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:"%JAVA_HOME%"/jre/lib/rt.jar -classpath E:\Study\Java\ThreadStudy\ThreadStudy\src\ cn/hacker/cas/FindClassOrder


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

 

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

Java classloader机制测试命令