News

A Java compiler takes a text file and compiles it into a platform-independent Java file, meaning the compiled code can run on any OS. Learn how it works. Search the TechTarget Network. Sign-up now.
Now, open the Command Prompt and run it as administrator. We will make use of the ‘cd’ command to change the operating directory on the Command Prompt to the one where your Java program is stored.
We’ll start by compiling and running a Java program the old-fashioned way—with text files and console commands. This gives us a good sense of what’s actually happening. Step 1.