Skip to content

What is the correct method to install a JDK on Mac OS Lion?

2 messages · Bhima Pandava, Simon Urbanek

4 days later
#
On Aug 21, 2011, at 10:31 AM, Bhima Pandava wrote:

            
Yes
No, OS X doesn't need it
It is deleted after the installation. You want to use the unpacked tar ball.


But to your real issue - Apple doesn't provide headers inside the Java home anymore, so you want to re-run javareconf pointing to the framework:

R CMD javareconf JAVA_CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers

(normally you don' t need sudo but if you used it once, you have to use it from then on).

Cheers,
Simon