News for hackers. Stuff that matters.
Re:Using Java 9 Modularization to Ship Zero-Dependency Apps by iovrthoughtthis on Wednesday January 03, 2018 @11:20AM (#16062244)
Really?

1) Install node.

2) Write script. e.g.

  console.log('hello');

3) Run script:

  > node script.js

  hello
Java

1-10) Download Java *

11) Ensure JAVA_HOME is set right

12) Write java

  public class Hello {
    public static int main(String[] args) {
        System.out.println("hello");
    }
  }

13) Compile java

  > javac Hello.java
14) Run java

  > java Hello
  hello
* Yes, this is obviously facetious.

EDIT: Code formatting thanks to https://news.ycombinator.com/formatdoc

There are no comments on this comment yet.