Inspired by a recent 916 post

  • Valmond@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    9 hours ago

    Just make the 200 line boiler code setup to make some

    system.stuff.thingy.log.println(“hello world”);

    Then it’s not compatible with the installed vm.

    • cub Gucci@lemmy.today
      link
      fedilink
      arrow-up
      11
      ·
      8 hours ago

      Then it’s not compatible with the installed vm.

      This almost never happens, unless you do very niche things or have unrealistic expectations from your file system.

      Niche things include using obsolete cyphers for net communication or running java code on the ibm mainframe, not something you do day to day.

    • loutr@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 hours ago

      Java has changed a lot since Java 8. Here’s a 3-line HelloWorld.java compatible with Java 21+:

      void main() {
          System.out.println("Hello, World!");
      }