/System/Library/Frameworks/JavaVM.framework/Versions 디렉토리에서
CurrentJDK로 심볼릭 링크 걸려 있는 것을 1.6으로 바꿔주면 됩니다.
ps. eclipse 3.4 mac os x버전은 java6에서 안 돌아갑니다.
The Eclipse SWT framework doesn't support 64-bit Java. Unlike Swing, SWT uses old-skool Cocoa bindings and those are 32-bit. Until IBM gets around to moving SWT to Cocoa, your only option is to run Eclipse under Java 5.
from: http://forums.macosxhints.com/showthread.php?t=91060
3.5버전m4는 동작하더군요.
CurrentJDK로 심볼릭 링크 걸려 있는 것을 1.6으로 바꿔주면 됩니다.
kenuheoyimacbookpro:~ kenu$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
kenuheoyimacbookpro:~ kenu$ which java
/System/Library/Frameworks/JavaVM.framework/Home/bin/java
...
kenuheoyimacbookpro:JavaVM.framework kenu$ ls -altr
total 72
drwxr-xr-x 84 root wheel 2856 12 10 17:00 ..
lrwxr-xr-x 1 root wheel 29 12 11 09:30 Libraries -> Versions/CurrentJDK/Libraries
lrwxr-xr-x 1 root wheel 24 12 11 09:30 Home -> Versions/CurrentJDK/Home
lrwxr-xr-x 1 root wheel 28 12 11 09:30 Commands -> Versions/CurrentJDK/Commands
lrwxr-xr-x 1 root wheel 27 12 11 09:30 Classes -> Versions/CurrentJDK/Classes
drwxr-xr-x 7 root wheel 476 12 11 09:30 Versions
lrwxr-xr-x 1 root wheel 26 12 11 09:30 Resources -> Versions/Current/Resources
lrwxr-xr-x 1 root wheel 23 12 11 09:30 JavaVM -> Versions/Current/JavaVM
lrwxr-xr-x 1 root wheel 27 12 11 09:30 Frameworks -> Versions/Current/Frameworks
lrwxr-xr-x 1 root wheel 94 12 11 09:30 CodeResources -> ../../../../../../../../../System/Library/Frameworks/JavaVM.framework/Versions/A/CodeResources
lrwxr-xr-x 1 root wheel 24 12 12 19:43 Headers -> Versions/Current/Headers
drwxr-xr-x 3 root wheel 408 12 12 19:43 .
kenuheoyimacbookpro:JavaVM.framework kenu$ which java
/System/Library/Frameworks/JavaVM.framework/Home/bin/java
kenuheoyimacbookpro:JavaVM.framework kenu$ cd Versions
kenuheoyimacbookpro:Versions kenu$ ls
1.3 1.4.1 1.5.0 A
1.3.1 1.4.2 1.6 Current
1.4 1.5 1.6.0 CurrentJDK
kenuheoyimacbookpro:Versions kenu$ ls -altr
total 56
drwxr-xr-x 3 root wheel 102 7 18 2008 1.3.1
lrwxr-xr-x 1 root wheel 3 12 10 17:00 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 12 10 17:00 1.4.2
lrwxr-xr-x 1 root wheel 3 12 11 09:30 CurrentJDK -> 1.5
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.3 -> 1.3.1
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.5 -> 1.5.0
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.6 -> 1.6.0
lrwxr-xr-x 1 root wheel 1 12 11 09:30 Current -> A
drwxr-xr-x 6 root wheel 272 12 11 09:30 A
drwxr-xr-x 7 root wheel 476 12 11 09:30 .
drwxr-xr-x 3 root wheel 408 12 12 19:43 ..
drwxr-xr-x 8 root wheel 340 2 2 10:46 1.6.0
drwxr-xr-x 8 root wheel 306 2 3 13:53 1.5.0
kenuheoyimacbookpro:Versions kenu$ rm CurrentJDK
rm: CurrentJDK: Permission denied
kenuheoyimacbookpro:Versions kenu$ sudo rm CurrentJDK
Password:
kenuheoyimacbookpro:Versions kenu$ sudo ln -s 1.6 CurrentJDK
kenuheoyimacbookpro:Versions kenu$ ls -altr
total 56
drwxr-xr-x 3 root wheel 102 7 18 2008 1.3.1
lrwxr-xr-x 1 root wheel 3 12 10 17:00 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 12 10 17:00 1.4.2
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.3 -> 1.3.1
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.5 -> 1.5.0
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.6 -> 1.6.0
lrwxr-xr-x 1 root wheel 1 12 11 09:30 Current -> A
drwxr-xr-x 6 root wheel 272 12 11 09:30 A
drwxr-xr-x 3 root wheel 408 12 12 19:43 ..
drwxr-xr-x 8 root wheel 340 2 2 10:46 1.6.0
drwxr-xr-x 8 root wheel 306 2 3 13:53 1.5.0
lrwxr-xr-x 1 root wheel 3 2 3 13:54 CurrentJDK -> 1.6
drwxr-xr-x 7 root wheel 476 2 3 13:54 .
kenuheoyimacbookpro:Versions kenu$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
kenuheoyimacbookpro:Versions kenu$
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
kenuheoyimacbookpro:~ kenu$ which java
/System/Library/Frameworks/JavaVM.framework/Home/bin/java
...
kenuheoyimacbookpro:JavaVM.framework kenu$ ls -altr
total 72
drwxr-xr-x 84 root wheel 2856 12 10 17:00 ..
lrwxr-xr-x 1 root wheel 29 12 11 09:30 Libraries -> Versions/CurrentJDK/Libraries
lrwxr-xr-x 1 root wheel 24 12 11 09:30 Home -> Versions/CurrentJDK/Home
lrwxr-xr-x 1 root wheel 28 12 11 09:30 Commands -> Versions/CurrentJDK/Commands
lrwxr-xr-x 1 root wheel 27 12 11 09:30 Classes -> Versions/CurrentJDK/Classes
drwxr-xr-x 7 root wheel 476 12 11 09:30 Versions
lrwxr-xr-x 1 root wheel 26 12 11 09:30 Resources -> Versions/Current/Resources
lrwxr-xr-x 1 root wheel 23 12 11 09:30 JavaVM -> Versions/Current/JavaVM
lrwxr-xr-x 1 root wheel 27 12 11 09:30 Frameworks -> Versions/Current/Frameworks
lrwxr-xr-x 1 root wheel 94 12 11 09:30 CodeResources -> ../../../../../../../../../System/Library/Frameworks/JavaVM.framework/Versions/A/CodeResources
lrwxr-xr-x 1 root wheel 24 12 12 19:43 Headers -> Versions/Current/Headers
drwxr-xr-x 3 root wheel 408 12 12 19:43 .
kenuheoyimacbookpro:JavaVM.framework kenu$ which java
/System/Library/Frameworks/JavaVM.framework/Home/bin/java
kenuheoyimacbookpro:JavaVM.framework kenu$ cd Versions
kenuheoyimacbookpro:Versions kenu$ ls
1.3 1.4.1 1.5.0 A
1.3.1 1.4.2 1.6 Current
1.4 1.5 1.6.0 CurrentJDK
kenuheoyimacbookpro:Versions kenu$ ls -altr
total 56
drwxr-xr-x 3 root wheel 102 7 18 2008 1.3.1
lrwxr-xr-x 1 root wheel 3 12 10 17:00 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 12 10 17:00 1.4.2
lrwxr-xr-x 1 root wheel 3 12 11 09:30 CurrentJDK -> 1.5
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.3 -> 1.3.1
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.5 -> 1.5.0
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.6 -> 1.6.0
lrwxr-xr-x 1 root wheel 1 12 11 09:30 Current -> A
drwxr-xr-x 6 root wheel 272 12 11 09:30 A
drwxr-xr-x 7 root wheel 476 12 11 09:30 .
drwxr-xr-x 3 root wheel 408 12 12 19:43 ..
drwxr-xr-x 8 root wheel 340 2 2 10:46 1.6.0
drwxr-xr-x 8 root wheel 306 2 3 13:53 1.5.0
kenuheoyimacbookpro:Versions kenu$ rm CurrentJDK
rm: CurrentJDK: Permission denied
kenuheoyimacbookpro:Versions kenu$ sudo rm CurrentJDK
Password:
kenuheoyimacbookpro:Versions kenu$ sudo ln -s 1.6 CurrentJDK
kenuheoyimacbookpro:Versions kenu$ ls -altr
total 56
drwxr-xr-x 3 root wheel 102 7 18 2008 1.3.1
lrwxr-xr-x 1 root wheel 3 12 10 17:00 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 12 10 17:00 1.4.2
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.3 -> 1.3.1
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.5 -> 1.5.0
lrwxr-xr-x 1 root wheel 5 12 11 09:30 1.6 -> 1.6.0
lrwxr-xr-x 1 root wheel 1 12 11 09:30 Current -> A
drwxr-xr-x 6 root wheel 272 12 11 09:30 A
drwxr-xr-x 3 root wheel 408 12 12 19:43 ..
drwxr-xr-x 8 root wheel 340 2 2 10:46 1.6.0
drwxr-xr-x 8 root wheel 306 2 3 13:53 1.5.0
lrwxr-xr-x 1 root wheel 3 2 3 13:54 CurrentJDK -> 1.6
drwxr-xr-x 7 root wheel 476 2 3 13:54 .
kenuheoyimacbookpro:Versions kenu$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
kenuheoyimacbookpro:Versions kenu$
ps. eclipse 3.4 mac os x버전은 java6에서 안 돌아갑니다.
The Eclipse SWT framework doesn't support 64-bit Java. Unlike Swing, SWT uses old-skool Cocoa bindings and those are 32-bit. Until IBM gets around to moving SWT to Cocoa, your only option is to run Eclipse under Java 5.
from: http://forums.macosxhints.com/showthread.php?t=91060
3.5버전m4는 동작하더군요.