I failed to build SJava dure to teh error below. Any ideas? # R CMD INSTALL -c SJava_0.68-0.tar.gz * Installing *source* package 'SJava' ... checking for java... /opt/j2sdk1.4.2_06//bin/java Java VM /opt/j2sdk1.4.2_06//bin/java checking for javah... /opt/j2sdk1.4.2_06//bin/javah Looking in /opt/j2sdk1.4.2_06/include Looking in /opt/j2sdk1.4.2_06/include/linux checking for g++... no checking for c++... no checking for gpp... gpp checking for C++ compiler default output... b.out checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. ERROR: configuration failed for package 'SJava'
Seem pretty straightforward to me: either gpp is not a C++ compiler or it does not work (possibly because LD_LIBRARY_PATH does not contain its run-time libraries). On Thu, 18 Nov 2004, Yasser El-Zein wrote:> I failed to build SJava dure to teh error below. Any ideas? > > # R CMD INSTALL -c SJava_0.68-0.tar.gz > * Installing *source* package 'SJava' ... > checking for java... /opt/j2sdk1.4.2_06//bin/java > Java VM /opt/j2sdk1.4.2_06//bin/java > checking for javah... /opt/j2sdk1.4.2_06//bin/javah > Looking in /opt/j2sdk1.4.2_06/include > Looking in /opt/j2sdk1.4.2_06/include/linux > checking for g++... no > checking for c++... no > checking for gpp... gpp > checking for C++ compiler default output... b.out > checking whether the C++ compiler works... configure: error: cannot > run C++ compiled programs.-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
How can I increase the JVM's memory using teh SJava library?
Is theer an SJava mailing list? I have the following SJava related question: I am calling a Java methos in this mannor: a <- .Java("className", "methodName") print("done") As defined, the mother returns an Object in some case this Object points to an array of 100,000 Strings. The method prints a statement when its done. I see ahuge delay between teh last statement in teh java method and the "done" statement above. I am looking for a way to improve the speed of SJava converting the java result into R.