Skip to content

Add Java sh-bang support#881

Open
jakebman wants to merge 1 commit intosheerun:masterfrom
jakebman:master
Open

Add Java sh-bang support#881
jakebman wants to merge 1 commit intosheerun:masterfrom
jakebman:master

Conversation

@jakebman
Copy link
Copy Markdown

@jakebman jakebman commented Jan 5, 2026

With Java 11's JEP-330, java supports sh-bang lines.

This only works on files without a .java extension

[if the file doesn't have a .java extension, and] the first line begins with #!, then the contents of that line up to but not including the first newline are ignored when determining the source code to be passed to the compiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant