Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: