Sun has been riding the Java wave, but will it come crashing down on its hardware business? Java has been a blessing for Sun Microsystems Inc. But for Sun’s revenue-driving hardware business, could Java turn out to be a curse? More than any other company, Sun is tying its future–in the form of its…