I saw your post in the DOS forum, but since you bring up Java and C++, I'm gonna guess you have a windows machine.
With any language all you really need is an editor (notepad or wordpad will do, some language processors come with an IDE), write your program, save the file and then point the compiler or intepreter to your file.
Perhaps if you could be more specific as to what you need to accomplish, we could be more helpful.
Let us know.