hello_world_without_an_ide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
hello_world_without_an_ide [2022/08/03 13:28] – frchris | hello_world_without_an_ide [2022/08/03 13:34] – frchris | ||
---|---|---|---|
Line 2: | Line 2: | ||
They say the only way to teach a fish about water is to remove the fish from the water. | They say the only way to teach a fish about water is to remove the fish from the water. | ||
We need to type the following Java code as a text file. Java requires that the File name is Capitalized, | We need to type the following Java code as a text file. Java requires that the File name is Capitalized, | ||
- | <code java> | + | |
- | public class First | + | ===== 1. Type the code as a text file ===== |
- | { | + | |
- | public static void main(String[] args) | + | |
- | { | + | |
- | System.out.println(" | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
==== Linux / MacOS ==== | ==== Linux / MacOS ==== | ||
Line 17: | Line 11: | ||
nano First.java | nano First.java | ||
</ | </ | ||
+ | There is a remote possibility [[https:// | ||
==== DOS / Windows before Win7-64 bit==== | ==== DOS / Windows before Win7-64 bit==== | ||
'' | '' | ||
Line 23: | Line 17: | ||
==== Windows 7-64 bit and later ==== | ==== Windows 7-64 bit and later ==== | ||
'' | '' | ||
+ | |||
+ | Now in respect editors we type: | ||
+ | <code java> | ||
+ | public class First | ||
+ | { | ||
+ | public static void main(String[] args) | ||
+ | { | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | ===== 2. Compile the Code ===== | ||
+ | |||
+ | ===== 3. Execute the Code ===== | ||
+ | |||
hello_world_without_an_ide.txt · Last modified: 2022/08/03 13:53 by frchris