Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. shebang

Tag: shebang

j
java May 15, 2020 2 min read by mkyong 0 comments

Java 11 shebang example in Docker

In Java 11, JEP 330 adds support to run single-file source code directly. Terminal # Before Java 11 $ javac Hello.java $ java Hello # Now Java 11 $ java Hello.java This indirectly supports the Java single-file program to run as a script using Unix Shebang. For example, run below .sh file will print Hello […]

Read more Java 11 shebang example in Docker

Java and Spring tutorials since 2008. Every example is a complete, runnable file, compiled and run on a real machine before it goes out.

About This Site

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use

© 2026 mkyong.com — Powered by WordPress

RSS