Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 인텔리제이 에러
- 분할정복
- 백준
- BFS
- 프로그래머스
- 자바 5464
- 백준 16935
- 코딩테스트
- 파이썬
- 리트코드 자바
- daily challenge
- 스프링 에러
- java leetcode
- DP
- dfs
- Java
- 스택
- 리트코드
- leetcode 1721
- 구현
- 프로그래머스 java
- 리트코드 1557
- 백준 18222
- java 프로그래머스
- leetcode
- 카카오
- 자바 리트코드
- 코테
- 그래프 자바
- 자바
Archives
- Today
- Total
레벨업 일지
[에러] failed :compileJava 본문
문제
빌드 에러가 났다.
다음과 같이 빨간 화면이 나왔다.
원인
build.gradle 에서 jdk 버전이 인텔리제이 프로젝트에서 설정한 버전과 동일하지 않았다.
ctrl+shift + alt + s 를 눌러 프로젝트의 sdk 버전은 11로 설정됐고
build.gradle 파일의 자바 버전은 1.8이었다.
sourceCompatibility = 1.8
해결
다음과 같이 프로젝트 내부 버전이랑 그래이들 jdk 버전을 똑같이 설정해주었다.
buildscript{
ext{
springBootVersion = '2.1.7.RELEASE'
}
repositories{
mavenCentral()
jcenter()
}
dependencies{
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin:'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group 'com.jojoldu.book'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
repositories {
mavenCentral()
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
testImplementation('org.springframework.boot:spring-boot-starter-test')
implementation('org.projectlombok:lombok:1.18.24')
}
'JAVA > spring' 카테고리의 다른 글
[에러] cannot resolve symbol 'validation' (1) | 2023.02.07 |
---|---|
[에러] error: variable name not initialized in the default constructor (0) | 2023.02.07 |
[에러] Compile() 문제 (0) | 2023.02.07 |
[Web] Naming Convention 이란? (0) | 2023.01.30 |
[IntelliJ/에러] 자바 스프링 초기 환경 설정 에러project JDK is not defined (1) | 2023.01.24 |
Comments