Skip to content

Comment on Java is dying and it paid off my mortgage

Comments

I remember when sun came out with java in the mid 90's.

I was always dumbfounded this "scripting" language, from Sun, didn't let you write code like:

   #!/usr/bin/java
   ...
I suspect lots of unix (linux) would be different if this had happened.

You can do this in newer versions of Java (not sure since which), for what it's worth.

Since JDK 11 (released in 2018).

"Launch Single-File Source-Code Programs" https://openjdk.org/jeps/330

In France a local magazine for Linux enthusiasts has its cover on "Java as a language for scripting". Things are moving.

Iirc there was sone kind of ld hack to let you run jar files via ./someApp.jar (basically telling ld how to launch a jar file)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.