I agree with what hellowolrd have said... i think you should use a better compiler
ECLIPSE or NETBEANS... most of the java programmers here are using Eclipse.. but im using netbeans.. coz
thats where i Started.
you have so many advantages using NOTEPAD or DOS, why?
think of this..
what if you encounter a PRE-HISTORIC personal computer ,(e.g windows 1990 (if theres something like that)) a very low specs? expect that there's no any full blown IDE..so what are you going to do?
as far as i experienced using DOS.. that is the LAST RESORT of a programmer.. (just a personal idea)
you just need a java library..
I encountered this kind of scenario in my school
theres an IDE 'blue J' but! i dont know how to compile or write on that version of 'blue j' , (the version of blue j that were using was not a user friendly one).
so my proffesor asked us if its ok for us to use DOS to compile java programms...
at first it was peculiar.. coz you need to compile the program step-by-step..
but later on.. i found the benefits of using DOS.... 1 is the reason that,what if I encounter a computer without an IDE?
you can also learn on how to do the classpaths stuffs. (that I never encountered)..