I\'m trying to run this practice script from the standard Oracle Java tutorials.
This seems to be a common error and I\'ve used SO resources to make attempts to fix
i solved this problem by trying following solution
Project > Properties > Java Build Path Select Libraries tab Select JRE System Library Click Edit button Choose an alternate JRE (jre1.8.0_20) Click Finish button