[問題]關於深入淺出設計模式裏面檔案如何run

作者: WashFreeID (免洗)   2014-05-17 13:15:45
很新手的問題
http://examples.oreilly.com/9780596007126/
zip裏面code要如何run
網站下面說明檔寫
java -cp ./classes headfirst.observer.weather.WeatherStation
到/bin下面使用
但都沒有成功
會出現
錯誤: 找不到或無法載入主要類別 headfirst.observer.weather.WeatherStation
順便請教一下
如果要自己compile bin檔案
我在/src下用 javac -d ../bin headfirst/observer/weather/*.java但會出現
Note: headfirst/observer/weather/WeatherData.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
自己很不會指令
想請教一下 感謝
作者: PsMonkey (痞子軍團團長)   2014-05-17 13:59:00
請附上「沒有成功」的錯誤訊息,否則違反版規 5第一個問題應該就是精華區 Z-2-2,第二個問題...可跳過?

Links booklink

Contact Us: admin [ a t ] ucptt.com