run it in pi directory only,it will surely runlook i will tell u dos promt commandc:\mkdir pic:\cd pic:\edit test.javaedit window---ur code------save itexit to command promtc:\pi\javac test.javait will run