본문 바로가기

IntelliJ3

Error running '{ClassName}': Command line is too long. Shorten command line for {ClassName}. 해결; Shorten command line IntelliJ에서 테스트를 실행할 때 또는 개발한 애플리케이션을 실행할 때에도 이러한 에러가 발생하면서 실행되지 않는 경우가 있다. IntelliJ에서 바로 실행할 때에는 class path를 자동으로 잡게 하는데, 이 때문에 run command가 너무 길어져서 발생하는 문제이다. 정상적으로 실행되는 경우에도 알고 보면 아래처럼 어마 무시하게 run command가 길다. 이 run command에 길이가 OS limit를 넘으면 실행할 수 없게된다. 이를 해결하기 위해서는 Run/Debug Configuration에서 Shorten command line의 옵션을 수정한다. 4가지 옵션중 하나를 선택할 수 있다. None: 기본 옵션 값. IDE에서 긴 classpath를 줄여주지 않는다. comm.. 2019. 10. 16.
[Intellij] Error running 'Scala Console': Module is not specified 해결 Run Scala Console을 실행하였을 때 "Error running 'Scala Console': Module is not specified" 메세지가 나오면서 동작하지 않는 경우 Run Configuration에서 module specify 설정을 추가한다. 2019. 9. 4.
[IntelliJ/Gradle] unmappable character for encoding MS949 해결 (UTF-8로 build task 실행) Command⌘ + Shift⇧ + A(Windows는 Ctrl+Shift+A)로 action/option 검색창을 열고 "Gradle Settings"를 검색 Gradle Settings 열기 Gradle VM Options에 -Dfile.encoding=UTF-8 추가 2019. 8. 30.