User Tools

Site Tools


hello_world_without_an_ide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
hello_world_without_an_ide [2022/08/03 13:18] – created frchrishello_world_without_an_ide [2022/08/03 13:37] frchris
Line 1: Line 1:
 ====== Hello World Without an IDE ====== ====== Hello World Without an IDE ======
-They the only way to teach a fish about water is to remove the fish from the water.  So in the time honored tradition of writing "Hello World!" when you learn a new computer language lets try.+They say the only way to teach a fish about water is to remove the fish from the water.  So in the time honored tradition of writing "Hello World!" (whenever you learn a new computer language), lets try. 
 +We need to type the following Java code as a text file.   Java requires that the File name is Capitalized, and ends in ''.java''.  
 + 
 +===== 1. Type the code as a text file ===== 
 + 
 + 
 +=== Linux / MacOS === 
 + 
 +<code bash> 
 +nano First.java 
 +</code> 
 +There is a remote possibility [[https://www.fossmint.com/install-gnu-nano-in-linux/|nano needs to be installed]] 
 +=== DOS / Windows before Win7-64 bit=== 
 +''edit First.java'' 
 + 
 +=== Windows 7-64 bit and later === 
 +''notepad First.java'' 
 +(technically not a command line editor, but they removed that ability for some reason) 
 +Now in respect editors we type:
 <code java> <code java>
 public class First  public class First 
Line 10: Line 28:
 } }
 </code> </code>
 +===== 2. Compile the Code =====
 +
 +===== 3. Execute the Code =====
  
-===== Linux ===== 
  
-<code bash> 
-nano First.java 
-</code> 
hello_world_without_an_ide.txt · Last modified: 2022/08/03 13:53 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki