In NetBeans under the Projects tab on the left side, right-click the project and select Clean and Build. When that's finished, it should create a new "dist" folder under your project's main folder (along side the "src", "nbproject", etc folders). You would give (distribute) the "dist" folder to others for them to run your program. Inside the "dist" folder will be a .jar file that can be double-clicked to launch the program stand-alone (outside of NetBeans). That assumes .jar files are properly associated with java.exe in Windows, which is usually the case. Or as Norm said, you can create a batch file launcher, but that's usually unnecessary unless you have a more complex situation like needing JVM parameters to prefer IPv4 over IPv6, or to force OpenGL instead of DirectDraw for graphics.