내용으로 건너뛰기
권남
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
java:jshell
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== JShell ====== * [[java:9|Java 9]] 에서 추가된 Java Shell ===== shebang ===== * ''#!'' 형태로 jshell 실행하기 * [[https://gist.github.com/ffissore/012d7e32a096fde5266f49038c93dcaf|with jshell-wrapper you get runnable java scripts: it removes the heading shebang, adds an "/exit" for good measure, and passes the result to jshell]] <code sh> # 이 내용을 jshell-wrapper로 저장하고 #!/path/to/jshell-wrapper 로 shebang 지정 TMP=`mktemp` tail -n +2 $@ >> $TMP echo "/exit" >> $TMP #$JAVA_HOME/bin/jshell -q --execution local $TMP /usr/bin/env jshell -q --execution local $TMP rm $TMP #put this file in /usr/local/bin/ or somewhere in your $PATH </code> * [[https://bugs.openjdk.java.net/browse/JDK-8167440|[JDK-8167440] jshell tool: support shebang(#!; executable UNIX scripts) - Java Bug System]] shebang 공식 지원에 관한 issue ===== 참조 ===== * [[https://examples.javacodegeeks.com/core-java/java-9-jshell-tutorial/|Java 9 Jshell Tutorial | Examples Java Code Geeks - 2018]] * [[http://taewan.kim/post/trans_jshell/|[번역] JShell 사용자 가이드]] * [[https://www.youtube.com/playlist?list=PLqq-6Pq4lTTZh5EDIPZuaD3S25z49Rodz|JShell Basics Youtube]] * [[https://cr.openjdk.java.net/~rfield/tutorial/JShellTutorial.html|JShell Tutorial]] * [[https://docs.oracle.com/en/java/javase/17/jshell/introduction-jshell.html|Introduction to JShell / Java 17]]
java/jshell.txt
· 마지막으로 수정됨: 2022/01/09 16:12 저자
kwon37xi
문서 도구
문서 보기
이전 판
역링크
맨 위로