How to create executable Java file?
Hello. I'm still a novice in Java, and I've never created a Java file that could be executed just by double-clicking, just like an .exe would; I just tried the program by using "Run" in Netbeans.
The kind of file I mean is like the ones you can download in the oracle examples' webpage: for example, in the Swing components examples' webpage (Using Swing Components: Examples (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)), by clicking [Launch], which downloads the file.
Is there a way to do it in Netbeans ? And is there any difference from the kind of file used for applets than for self-governing programs?
Re: How to create executable Java file?
You want a .jar file, correct? I know that in eclipse you can export your project to an executable jar.
Packaging and Deploying Desktop Java Applications