why not simply type: javac prog1.java and everything will work fine.I mean, it works fine unless you don't use a very specific java compiler .By the why, there are no dump questions, only dumb answers.If not you may switch to C++ .