[问题]关于深入浅出设计模式里面档案如何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