IntelliJ 실행 에러 해결하기

Tina Jeong·2021년 3월 15일
2

인텔리제이를 오래 사용하다보니 다양한 경험을 하게 되는데, 오늘은 다름 아닌 IDE 실행 에러를 마주했다.

java.net.BindException: Address already in use: bind ...

와 같은 에러 메세지가 뜨면서 IDE가 실행되지 않는 상황이었다. 포트가 이미 사용되고 있다는 뜻인 거 같은데.. 마침 에러 메세지 위에 관련 문서 링크가 떠서 클릭했고, 해결책이 스텝별로 나와 있었다.

step 1 : BindException 이 발생한 경우

BindException이 바로 내 경우였으므로 step 1에서 해결이 됐다. 다른 어플리케이션에서 IntelliJ가 사용하는 포트를 이미 잡아버린 경우이기 때문이다.

cmd.exe를 관리자 권한으로 실행한 후 다음의 명령을 타이핑해 다이나믹 포트의 range를 [49152,65535) 로 설정해준다.

netsh int ipv4 set dynamicport tcp start=49152 num=16383
netsh int ipv4 set dynamicport udp start=49152 num=16383

그런 다음 IntelliJ를 재실행한다. 똑같은 에러 메세지가 뜨면, 다음의 명령을 타이핑해서 Windows NAT를 중지시킨 후 재실행한다.

net stop winnat
net start winnat

step 1에서 해결이 됐지만, 미티(미래의 티나)를 위해..나머지 스텝도 정리해둔다.

step 2 : 에러와 관련된 third party plugin을 삭제하기

아래는 os 별로 플러그인이 위치한 폴더이다. 근데 지금 드는 의문은 문제가 되는 plugin을 어떻게 알 수 있는 건지..이다. 뭐 그때 되면 알겠지.

  • Windows (idea.plugins.path): C:\Users\\AppData\Roaming\JetBrains\IntelliJIdea2020.3\plugins
  • MacOs (idea.plugins.path): ~/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins
  • Linux (idea.plugins.path): ~/.local/share/JetBrains/IntelliJIdea2020.3

플러그인 리스트

$ ls
EduTools
Key-Promoter-X
featuresTrainer

step 3 : IntelliJ IDE 재다운 받기

https://www.jetbrains.com/idea/download/

step 4 : IDE system 디렉토리 삭제하기

  • Windows (idea.system.path): C:\Users\\AppData\Local\JetBrains\IntelliJIdea2020.3
  • MacOs (idea.system.path): ~/Library/Caches/JetBrains/IntelliJIdea2020.3
  • Linux (idea.system.path): ~/.cache/JetBrains/IntelliJIdea2020.3

step 5 : IDE setting 디렉토리 삭제하기

지금쯤 해결이 되어야 하지만, step 5까지 왔다면 setting 디렉토리를 삭제하라고 한다.

  • Windows (idea.config.path): C:\Users\\AppData\Roaming\JetBrains\IntelliJIdea2020.3
  • MacOs (idea.config.path): ~/Library/Application Support/JetBrains/IntelliJIdea2020.3
  • Linux (idea.config.path): ~/.config/JetBrains/IntelliJIdea2020.3

그래도 안되면 젯브레인으로 리포트를 달라고 함.

참고
https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559
https://youtrack.jetbrains.com/issue/IDEA-238995?_ga=2.107690242.143138873.1615818138-1873971653.1615227376
https://intellij-support.jetbrains.com/hc/en-us/articles/206544519

profile
Keep exploring, 계속 탐색하세요.

2개의 댓글

comment-user-thumbnail
2021년 9월 25일

대애ㅐㅐㅐㅐ박 감사합니다,,,, ㅜ

답글 달기
comment-user-thumbnail
2023년 11월 5일

정말 감사합니다... 덕분에 살았네요

답글 달기