[Eclipse Error] Remove @Override annotation
오류없이 테스트까지 확인한 녀석이..
프로젝트 삭제후 다시 check-out 하니 오류가 발생했다.
Remove @Override annotation
자바 빌드 버전을 확인하고 1.6 으로 변경하자
Edward. K
메멘토적 기억능력을 소유한 개발자 노트.
오류없이 테스트까지 확인한 녀석이..
프로젝트 삭제후 다시 check-out 하니 오류가 발생했다.
Remove @Override annotation
자바 빌드 버전을 확인하고 1.6 으로 변경하자
아....이녀석..
나를 컴퓨터를 포맷해야 하나..하는 고민에 빠지게 한 녀석
"Unable to load schema mappings from location [META-INF/spring.schemas]"
구글신의 도움을 받아서 포맷없이 해결했다..
수맣은 조회건들중 아래 2건에서 해결책이 제시되었다.
1. http://stackoverflow.com/questions/9789289/spring-sts-cant-find-meta-inf-spring-schemas
휴...멀쩡한 컴퓨터 밀뻔 했네...^^.
원인
처음 maven프로젝트를 생성한 것이라면, 동일한 maven 프로젝트를 사용한 것이라면 문제가 없을듯 하며.
기존 maven프로젝트에서 사용했던 jar 파일들과의 충돌이 문제였던것 같다.
해결 방법.
1. maven repostory 폴더내에 다운로드한 기존 maven 파일들을 삭제 합니다.
2. STS > Run As > maven clean. ( 1.번에서 진행 했지만..sts상에서 한번더 해줬습니다.)
3. STS > Run As > maven install. ( maven 실행하여 새로 jar 파일들을 다운로드 합니다.)
4. server clean
5. server start
개발환경 세팅을 위해 넘겨받은 eclipse 를 실행하니..다음과 같은 오류가 발생했다.
Failed to load the JNI shared library
"C\_jdk\jdk1.6\...... \jvm.dll"
조회를 통해 다음과 같은 해결책을 찾았는데..
http://aith.tistory.com/64
http://www.cyworld.com/bling_o/6420448
사용하는 이클립스와 jdk 가 서로 다른 버젼인 경우에 발생한 오류라고 한다.
본인은 64bit jdk 사용중이므로..
32bit jdk 도 설치하고 eclipse 실행 정보를 수정하여 처리했다.
eclipse.ini 파일에 다음 두 라인 추가.
-vm
설치한32bit jdk경로\bin\javaw.exe
--; 이런 오류를 보는게 참...하뤼레벨적인 문제인듯 한데..
Class 를 ArrayList.add()로 추가할때 발생하는 문제점(?이라기 보다는..개념무시한..) 이다.
같은 상황을 겪은 이가 올린 통해 코드를 보고서야..'아차~' 하게 되었다..ㅡ,.ㅡ
해결방안은 아래 링크에서 설명되어 있으나. 해결책은 제세되지 않기에
원문글의 코드부분을 가져와서 코드를 추가했다.
[원문글] http://coding.derkeiler.com/Archive/Java/comp.lang.java.help/2007-01/msg00317.html
I think this is a bit tougher then the last one I posted (which was quite simple). I think I'm missing something fundamental. This code runs, but when I run it and it prints out the contents of the list it shows that all items
in the list have the same value as the last item I added. I expect to see in the console:
[0] - aaa
[1] - bbb
[2] - ccc
But instead I see
[0] - ccc
[1] - ccc
[2] - ccc
------------------------------------------------------
import java.util.*;
public class Assignment1
{
public static class WordPair
{
String firstWord;
}
public static void main(String[] args)
{
WordPair tempWordPair = new WordPair();
ArrayList<WordPair> wordPairList = new ArrayList<WordPair>();
tempWordPair.firstWord = "aaa";
wordPairList.add( tempWordPair );
tempWordPair = new WordPair();
tempWordPair.firstWord = "bbb";
wordPairList.add( tempWordPair );
tempWordPair = new WordPair();
tempWordPair.firstWord = "ccc";
wordPairList.add( tempWordPair );
System.out.println("[0] - " + wordPairList.get(0).firstWord);
System.out.println("[1] - " + wordPairList.get(1).firstWord);
System.out.println("[2] - " + wordPairList.get(2).firstWord);
}
}