Java Program without Netbeans or Eclipse

Hello Everyone! So if I am working in Java, let's say that I have finished my program and I'm done with it. How can I make a file with my program in it so when I press the file or application, the program runs and displays me the output without having to use NetBeans or Eclipse. Thanks in advance!
