I am just starting to build the weather station and learn Java at that the same time. I am using the latest version of java and netbeans 6.8. I copied the TempSensor.java to the source and the file shows up in the IDE. I added:
// sensors
private TempSensor ts1;
lines as shown in the book and get errors:
E:\JavaDev\WeatherToys\SimpleWeather\src\simpleweather\SimpleWeather.java:47: cannot find symbol
symbol : class TempSensor
location: class simpleweather.SimpleWeather
private TempSensor ts1;
E:\JavaDev\WeatherToys\SimpleWeather\src\simpleweather\SimpleWeather.java:90: cannot find symbol
symbol : class TempSensor
location: class simpleweather.SimpleWeather
ts1 = new TempSensor(adapter, TEMP_SENSOR_ID);
E:\JavaDev\WeatherToys\SimpleWeather\src\simpleweather\TempSensor.java:28: cannot find symbol
symbol : variable SimpleWeather
location: class simpleWeather.TempSensor
private static boolean debugFlag = SimpleWeather.debugFlag;
Note: E:\JavaDev\WeatherToys\SimpleWeather\src\simpleweather\SimpleWeather.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
E:\JavaDev\WeatherToys\SimpleWeather\nbproject\build-impl.xml:413: The following error occurred while executing this line:
E:\JavaDev\WeatherToys\SimpleWeather\nbproject\build-impl.xml:199: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)
I can not find anything that explains the errors. Can someone please help me.
TIA,
Ron Ronhovde
