This guide will show you how to install both the openjdk and oracle java distros on linux via the command line, the steps are practically identical for the JDK, but have a different download links / package names.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define IM_A_LITTLE_POLYGLOT /* | |
| gcc $0 && ./a.out; exit | |
| */ | |
| /* | |
| 1. Save as foo.c | |
| 2. chmod +x foo.c | |
| 3. Run with ./foo.c | |
| */ |