How to make java applications?

I use only Mac OS X.
java file
compile
class files
run