you have to first create a java project
then open java perspective
select the project folder in the packeag explorer and then you will find a
shell like icon in the toolbar..click it you should find create a visual
class option ther
else right click the project folder and check for new visual class