thx!i have solved the prblem myself.but in fact,i solved by installing a new version of SDK because that i didn't know what the problem was(i have setted my CLASSPATH in /etc/profile and the there was no error in the program).
now i am using j2sdk1.4.1_01 and Sun One Studio(it is really nice!).