Fixing 'undefined symbol: NS_InitEmbedding' error in Eclipse 3.2.2

이클립스 3.2.2에서 ‘undefined symbol: NS_InitEmbedding‘ 에러 고치기

I happily upgraded my Eclipse SDK to 3.2.2 as soon as it’s released, but it started to crash whenever a tooltip is displayed, printing out the following error message.

이클립스 3.2.2가 릴리즈되자 마자 기쁜 마음으로 업그레이드를 했는데, 툴팁이 표시될때마다 다음과 같은 에러 메시지를 출력하면서 죽어버리기 시작했습니다.

/home/trustin/.local/jdk/bin/java: symbol<br />lookup error: /home/trustin/.local/eclipse/<br />configuration/org.eclipse.osgi/bundles/5/1/<br />.cp/libswt-mozilla-gcc3-gtk-3236.so:<br />undefined symbol: NS_InitEmbedding

After a couple hours of Googling, I found specifying the Mozilla home fixes this problem.

한두 시간 구글링해본 결과 모질라 홈 디렉토리를 지정해 주면 문제가 해결된다는 것을 알게 되었습니다.

#/bin/sh<br /># This is my Eclipse launching script.<br /># 제 이클립스 실행 스크립트입니다.<br /><br /># Set the Mozilla home<br />export MOZILLA_FIVE_HOME=/usr/lib/mozilla<br /># and viola!<br />cd ~/.local/eclipse && ./eclipse <br />        -vmargs -Xms256m -Xmx768m <br />        -XX:MaxPermSize=256m

8 Comments Fixing 'undefined symbol: NS_InitEmbedding' error in Eclipse 3.2.2

  1. 영회

    올만입니다. 자바원 발표는 하기로 결정되셨는지 궁금하네요.

    그리고 본문에 나오는 -Xmx768m 메모리 할당은 베스트 프랙티스인가요?

  2. Trustin Lee

    아쉽지만 탈락입니다 OTL…

    메모리 설정은 임의로 한 것입니다. 램이 4기가니 필요한 대로 끌어다 쓸 수 있어서 768이면 충분할 것 같아서요. Perm 영역도 좀 크게 잡았구요.

  3. Cristiano

    hi,

    I’m from Brasil and your line:

    export MOZILLA_FIVE_HOME=/usr/lib/mozilla

    it was very very usefull to me.

    Thank you.

    Cristiano M. Magalhaes

  4. Raul

    Hi trusting I m from argentina I worked many hours trying to find a solution and your was the only guide I founded and solved the problem very well, one thing i m not sure if after logout I need to reset again the MOZILLA_FIVE_HOME=/usr/lib/mozilla
    in ubuntu I think i need to write that in bash. any way thank you very much any way

  5. relaxmike

    Your line :
    export MOZILLA_FIVE_HOME=/usr/lib/mozilla
    was also fixing the bug, but there is more fun !
    I tried :
    export MOZILLA_FIVE_HOME=/mama/is/kind/with/me
    and it also worked, which shows that the content of the variable itself is not used, but just the environement variable suffices to fix the bug.
    But why ????
    Thank you for that hint anyway.
    Mike

  6. Trustin Lee

    @relaxmike: Yeah, I noticed there’s no such directory like /usr/lib/mozilla at all. I don’t know why it’s working, but it’s kinda magic! 😀

Comments are closed.