JAVA/JAVA__IDE

could not find tools.jar in the active jre

말하는감자 2019. 6. 5. 13:40

could not find tools.jar in the active jre

  • 아래 내용중 jdk 버젼은 컴퓨터에 설치된 버젼을 체크하고 해야한다

 

 

1) eclipse.ini(or SpringToolSuite4.ini)에에) 추가하기

\-vm  
C:\\Program Files\\Java\\jdk1.8.0\_171\\bin\\[javaw.exe](javaw.exe)  

 

2) 터미널에서 던져보기

javac -version
  • 만약 이때 버젼 안나오면 JAVA_HOME을 다시 잡아준다

 

3) 정말로 tools.jar가 없을 수도 있다

  • C:\Program Files\Java\jdk1.8.0_171\lib 에서 tools.jar를 복사해서 C:\Program Files\Java\jre1.8.0_181\lib에 넣어준다

 

4) 이래도 안된다면.. 이클립스와 jdk 버젼이 안맞을 수 있으니 맞춰준다

  • 프로젝트 - properties - java build path에서 라이브러리를 추가해준다

'JAVA > JAVA__IDE' 카테고리의 다른 글

The method builder() is undefined for the type  (0) 2020.08.04