Hi,
You need to download java by sun mirosystems and this will fix your java problem,and allow you to play chess at yahoo. Sun microsystems owns the rights to java,and sued Microsoft because they claimed java machine as theirs on their windows operating systems.
Sun Microsystems won the lawsuit,so in most instances java machine no longer works.Download java here:
http://www.java.com/en/index.jsp