Код: Выделить всё
#!/usr/bin/env jshell -s
System.out.println("Hello World")
/exit
< /code>
Однако это дает: < /p>
⚡ ./test.jsh
| Error:
| illegal character: '#'
| #!/usr/bin/env jshell -s
| ^
| Error:
| illegal start of expression
| #!/usr/bin/env jshell -s
| ^
Hello World
Подробнее здесь: https://stackoverflow.com/questions/449 ... ith-jshell