Exception in thread "main" java.lang.NullPointerException at package.class.main(class.java:24) nullPointException : null 객체(초기화가 진행되지 않은)의 멤버를 접근할 때 나오는 에러 |
Launch Error editor does not contain a main type 1. 자바 class 파일이 src폴더 밖에 있다. 2. 클래스 파일을 감싸는 패키지가 아예 없다. 3. build path를 빼먹었을 때 (ojdbc6.jar) : STS3.0 등 스프링에서 열었을 때 4. 프로젝트를 다른 데서 불러왔을 경우 5. 메인함수가 없거나 오타가 있다. public static void main(String[] args) |
Rename Compilation Unit 클래스의 이름을 변경 시 뜨는 알림창이다. 이걸 바꾸면 메서드를 참조하는 다른 클래스가 작동을 안할 수 있다는 뜻이다. |
Multiple markers at this line -The static field 클래스.변수 should be accessed in a static way 이렇게 뜬다면 클래스.변수로 변경해주면 해결된다. |
The value of the local variable 변수 is not used 1. 변수를 사용한다. 2. 변수를 지운다. 3. 누락된 부분을 찾는다. |
Workspace Unavailable The default workspace 'D:/Eclips_Workspace' is in use or cannot be created. Please choose a different one. 1. 프로세스에서 이클립스를 종료한다. 2. Workspace>metadata의 .lock을 지운다. |
The public type 클래스이름 must be defined in its own file public static void main{String args[])는 class파일의 이름을 가진public clases에 들어가야한다. |
The type 클래스이름 is already defined 같은패키지 어딘가에 class 매서드가 이미 정의되어 있을때 나온다 이름을 바꿔주면 된다. 오버로딩 시 매개변수의 타입과 개수를 확인해서 같다면 매개변수의 타입이나 개수를 바꿔줘야한다. |
Exception in thread "main" java.lang.StackOverflowError at 패키지이름.클래스이름.main(클래스이름.java:5) 자기자신을 재귀함수로 무한히 불러낼 때 발생하는 에러 재귀함수를 쓰지 않으면 된다. 어쩔 수 없이 재귀함수를 써야하는 경우 break문을 따로 만든다. |
클래스이름.java:5: error reference to concatenate is ambiguos System.out.println(); both method concatenate(String,String...) in 클래스이름 and method 1 error 두 오버로딩된 메서드가 구분되지 않아서 발생하는것이다 가변인자를 선언한 메서드를 오버로딩하면 메서드를 호출했을 때 이와 같이 구별되지 못하는 경우가 발생하기 때문에 주의해야한다. |