title: rj package compilation failure
body: <p>Thanks a lot for taking a look. There's a previous post on here with the same error message "cannot compile a simple JNI program" and the solution was to update to R 1.15. But I've already had everything in the newest version. Although it says "see config.log for details", it doesn't give a location, and "find / -name config.log" at the terminal returns nothing.</p>
  
  <p>It's be an exhausting and frustrating process trying to get this to work. Any help will be much appreciated.</p>
  
  <p>R version 2.15.1, 64-bit (I used Homebrew install, but it shouldn't be the problem)</p>
  
  <p>Eclipse 4.2 Cocoa, 64-bit (tried 3.7 as well, didn't work either)</p>
  
  <p>OSX 10.7.5</p>
  
  <p>Here's the error message:</p>
  
  <pre>
  install.packages(c("rj"), repos="http://download.walware.de/rj-1.1")
  Installing package(s) into '/Library/Frameworks/R.framework/Versions/2.15/Resources/library'
  (as 'lib' is unspecified)
  trying URL 'http://download.walware.de/rj-1.1/src/contrib/rj_1.1.0-4.tar.gz'
  Content type 'application/x-tar' length 314501 bytes (307 Kb)
  opened URL
  ==================================================
  downloaded 307 Kb
  
  * installing *source* package 'rj' ...
  checking R config... found
      R_HOME   : /usr/local/Cellar/r/2.15.1/R.framework/Resources
  checking for gcc... cc
  checking for C compiler default output file name... a.out
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables... 
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether cc accepts -g... yes
  checking for cc option to accept ISO C89... none needed
  checking Java support in R... ok
      JAVA_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
      JAVA     : /usr/bin/java
      JAVAC    : /usr/bin/javac
      JAVAH    : /usr/bin/javah
      JAVA_CPPFLAGS: -I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include
      JAVA_LIBS: -framework JavaVM
      JAR      : /usr/bin/jar
  
  configure: creating ./config.status
  config.status: creating src/Makevars
  === configuring in jri (/private/var/folders/7p/q7qb1n2d277c9tqt65s5wy_c0000gn/T/RtmpVlP2YK/R.INSTALL2c9175fac4e/rj/jri)
  configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
  checking build system type... i386-apple-darwin11.4.2
  checking host system type... i386-apple-darwin11.4.2
  checking for gcc... cc
  checking for C compiler default output file name... a.out
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables... 
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether cc accepts -g... yes
  checking for cc option to accept ISO C89... none needed
  checking how to run the C preprocessor... cc -E
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for ANSI C header files... rm: conftest.dSYM: is a directory
  rm: conftest.dSYM: is a directory
  yes
  checking whether Java interpreter works... checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details.
  configure: error: ./configure failed for jri
  ERROR: configuration failed for package 'rj'
  * removing '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rj'
  * restoring previous '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rj'
  
  The downloaded source packages are in
      '/private/var/folders/7p/q7qb1n2d277c9tqt65s5wy_c0000gn/T/RtmpNM4Pyx/downloaded_packages'
  Warning message:
  In install.packages(c("rj"), repos = "http://download.walware.de/rj-1.1") :
    installation of package 'rj' had non-zero exit status
  </pre>
  
  <p>Here is the session info.</p>
  
  <pre>
  sessionInfo()
  R version 2.15.1 (2012-06-22)
  Platform: x86_64-apple-darwin11.4.0 (64-bit)
  
  locale:
  [1] C
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  loaded via a namespace (and not attached):
  [1] tcltk_2.15.1 tools_2.15.1
  </pre>