[Rd] javareconf issue

rosseji rosseireland at gmail.com
Fri Oct 27 05:13:13 CEST 2017


Wasn't able to see a bug report on this issue yet... Hope I'm not doublng

There seems to be little info around for what "R CMD javareconf" does but
it has some deprecation errors seemingly.

On running cmd in terminal:

Java interpreter : /usr/bin/java

Java version     : 9

Java home path   : /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home

Java compiler    : /usr/bin/javac

Java headers gen.: /usr/bin/javah

Java archive tool: /usr/bin/jar

System Java on macOS

*trying to compile and link a JNI program *

*detected JNI cpp flags    :

*detected JNI linker flags : -framework JavaVM*

*clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I/System/Library/Frameworks/JavaVM.framework/Headers  -I/usr/local/include
  -fPIC  -Wall -g -O2  -c conftest.c -o conftest.o*

*conftest.c:4:5: warning: 'JNI_CreateJavaVM' is deprecated

*    JNI_CreateJavaVM(0, 0, 0);*

*    ^*

*/System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1936:39: note:
'JNI_CreateJavaVM' has*

*      been explicitly marked deprecated here*

*_JNI_IMPORT_OR_EXPORT_ __attribute__((deprecated)) jint JNICALL*

*                                      ^*

*1 warning generated.*

*clang -dynamiclib -Wl,-headerpad_max_install_names -undefined
dynamic_lookup -single_module -multiply_defined suppress
-L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o
conftest.so conftest.o -framework JavaVM
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework

*JAVA_HOME        :

*Java library path: *

*JNI cpp flags    : -I/System/Library/Frameworks/JavaVM.framework/Headers*

*JNI linker flags : -framework JavaVM*

*Updating Java configuration in /Library/Frameworks/R.framework/Resources*


	[[alternative HTML version deleted]]

More information about the R-devel mailing list