티스토리 뷰

JAVA

JAVA / WindowBuilder 오류

dreamstalker 2018. 6. 27. 09:00

WindowBuilder를 설치하고 프로젝트를 만들고 나서 화면하단에서 Design버튼을 눌러서 사용하려고 할 때  다음과 같은 영어 문장을 만난다면 에러가 발생했다는 이야기다


Eclipse is running under 0, but this Java project has a 10 Java compliance level, so WindowBuilder will not be able to load classes from this project. Use a lower level of Java for the project, or run Eclipse using a newer Java version.


간단히 요약하면 현재 자바 프로젝트 버전은 10인데 WindowBuilder는 현재 JDK버전보다 더 낮은 버전을 사용해야 된다는 말이다.



해결 방법은 

Eclipse Community Forums에서 발췌했다.

I'm only guessing, but in my experience WindowBuilder only works with Java 8 and below, because the format of the JDK version string changed in Java 9 and WindowBuilder fails because it fails to parse the version string. I remember reading somewhere in this forum that that problem was fixed, but I can't verify that it was and your post gives the impression that it has not been fixed. Have you tried Java 8? I would suggest removing all installed java versions and [re]installing Java 8.


간단히 요약하면 모든 JDK 버전을 지우고 1.8버전을 설치하면 된다는 그런내용이다.

본인은 현재 1.10버전만 설치되어 있어서 삭제를 하고 1.8버전을 설치했더니 성공적으로 되더라...

문제가 없다면 아래 페이지를 만나게 된다. 프레임에 패널이 자동으로 생성되어 있어서 컴포넌트를 배치해서 사용하면 된다.