Java2核心技術第七版中文版第二卷
第600頁,警告處這樣說:
如果将jar放入jre/lib/ext目錄中,并且在它的類中有一個類需要調用系統類或者擴充類,那麼就會遇到麻煩。擴充類加載器并不使用類路徑。
剛讀到這裡十分不解,為什麼用到系統類或擴充類會發生錯誤?并且一個類怎麼可能不會用到系統類?于是,找到英文版原文如下:
You can run into grief if you drop a JAR file into the jre/lib/ext directory and one of its classes needs to load a class that is not a system or extension class. The extension class loader does not use the class path.
看到了嗎? NOT a system or extension class
我看這應該不是翻譯者的筆誤,至少沒有認真翻譯,或者根本不懂。