Skip to content

Commit

Permalink
file name is wrong
Browse files Browse the repository at this point in the history
如题
  • Loading branch information
fanofxiaofeng authored Aug 25, 2017
1 parent 805d737 commit 7721d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CH09.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public class PackageDemo {

在編譯時您使用以下的指令指定編譯過後的類別檔案儲存目錄,'.'表示建立在目前的工作位置:

javac -d . UsePackage.java
javac -d . PackageDemo.java

編譯完成之後,在目前的工作位置中會出現 onlyfun 目錄,而 onlyfun 目錄下會有個 caterpillar 目錄,而 caterpillar 目錄下則有一個 PackageDemo.class 檔案,在編譯完成之後,"package" 的設定會成為類別名稱的一部份,也就是完整的類別名稱是 onlyfun.caterpillar.PackageDemo,所以在執行時要這麼下指令以指定類別名稱:

Expand Down

0 comments on commit 7721d7a

Please sign in to comment.