This wikiHow teaches you how to turn your Java source code into an executable app using a local and online compiler. If you're using a computer, the most common way to compile Java code is using Java Software Development Kit (Java SDK)...
Method 1 of 2:
Using Java Software Development Kit
Open the command prompt. You can use the Java Software Development Kit (Java SDK) from the command prompt on Windows, macOS, or Linux. If you don't have the Java SDK installed, see How to Install the Java Software Development Kit. Here's how to get to the command prompt on each system:
Use the cd command to access the directory with your Java code. The source code is the file that ends with the .java file extension.
Type javac sourcecode.java and press ↵ Enter or ⏎ Return. Replace sourcecode.java with the name of your source file.[1] This compiles your source code into an executable file, which ends with the .class extension.
Type java programname and press ↵ Enter or ⏎ Return. Replace programname with the name of your program. This runs the program at the command line.
Update 05 March 2020
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZpufor2quMRmmGaikauubrzRqJ6rmZ0%3D