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:32] – frchris | hello_world_without_an_ide [2022/08/03 13:39] – [2. Compile the Code] frchris | ||
---|---|---|---|
Line 3: | Line 3: | ||
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, | ||
- | ===== Type the code as a text file ===== | + | ===== 1. Type the code as a text file ===== |
- | ==== Linux / MacOS ==== | + | === Linux / MacOS === |
<code bash> | <code bash> | ||
Line 12: | Line 12: | ||
</ | </ | ||
There is a remote possibility [[https:// | There is a remote possibility [[https:// | ||
- | ==== DOS / Windows before Win7-64 bit==== | + | === DOS / Windows before Win7-64 bit=== |
'' | '' | ||
- | ==== Windows 7-64 bit and later ==== | + | === Windows 7-64 bit and later === |
'' | '' | ||
- | + | (technically not a command line editor, but they removed that ability for some reason) | |
- | Now in respect editors we type: | + | ====Now (in your respective editor) |
<code java> | <code java> | ||
public class First | public class First | ||
Line 28: | Line 28: | ||
} | } | ||
</ | </ | ||
+ | ===== 2. Compile the Code ===== | ||
+ | <code bash> | ||
+ | javac First | ||
+ | </ | ||
+ | ===== 3. Execute the Code ===== | ||
+ | |||
hello_world_without_an_ide.txt · Last modified: 2022/08/03 13:53 by frchris