Arduino 1.0 changes

How does the new Serial.write() substitute for byte?
In Arduino 022, ' RTC_DS1307 RTC ; ' was accepted.
NowI get 'RTC_DS1307' does not name a type error message.
How do I get Arduino 1.0 to accept this?

How does the new Serial.write() substitute for byte?

The Serial instance is an instance of the HardwareSerial class. The HardwareSerial class derives from the Stream class, which, in turn, derives from the Print class. So, Serial.print() and Serial.write() are actually Print::print() and Print::write(). The print() methods still takes an optional second argument that defines the base (DEC = 10, BIN = 2, HEX = 16) to use when converting the value to a string. BYTE is no longer recognized by the print() function.

So, to achieve the same functionality, you need to use the write() method.

How do I get Arduino 1.0 to accept this?

Arduino libraries in the 0022 directory are not accessed by Arduino 1.0. You need to install the RTC_DS1307 library in the right place (the libraries directory in the sketch folder).