Environment variables [Partly solved]

Michael Hall mik3hall at gmail.com
Wed Feb 26 18:41:15 PST 2014

On Feb 25, 2014, at 2:39 PM, Michael Hall <mik3hall at gmail.com> wrote:

> I think I did get setting R_HOME to work last night, instead of hanging the app actually crashed. Any tricks to getting crash logs these days I might of missed?

Set but set incorrectly.
Managed to see the error message correctly finally. I had to activate some simple JNI I had written earlier that implements a PrintStream around some JNI NSLog's to get messages in console again. Then figured out the message I was missing was going to err not out. 
Anyhow, googling the message seemed to say some sample code I was basing setting R_HOME on was wrong. It had to be to the directory, not the executable.
So then…

jri loaded true
Rengine starting...
Starting R...
Rengine Mac code
Rengine: setting R_HOME to /Library/Frameworks/R.framework/Resources
setupR got 0
t = 3

Some of those obviously debug messages that can now be removed but working for that part anyhow.


Michael Hall

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter

More information about the macosx-port-dev mailing list