It seems that that in some Mac OS systems, Eclipse IDE does not show the sources for JRE classes. If so, perform the following to access the source:
1) Download and install Java for Mac OS X Developer Package (registration required).
2)This will create a folder
/Library/Java/JavaVirtualMachines/1.6.0_*/Contents/Home
that can be added as JRE in Eclipse:And thats it.. Now you can access the source.. However it works fine for me without this solution(:)
Another issue while you launch your java application in eclipse on MAS OS :
It throws linker error exception.. you could resolve this by using the argument -d32 for VM arguments of your launch config.