S
Steve
Hi,
I need to set some environment variables within a Java app so that some JNI
code called later can access them. I don't know the values of these
variables a priori, so I can't set them before running the app. Looking
through the archives, it seems this may be impossible, but not definitively
so. But I thought I'd ask in case someone has any ideas. I've tried
writing a JNI method that calls putenv(), but putenv() fails (perhaps the
JVM is prohibiting any environment changes?). Any ideas?
Thanks,
Steve
I need to set some environment variables within a Java app so that some JNI
code called later can access them. I don't know the values of these
variables a priori, so I can't set them before running the app. Looking
through the archives, it seems this may be impossible, but not definitively
so. But I thought I'd ask in case someone has any ideas. I've tried
writing a JNI method that calls putenv(), but putenv() fails (perhaps the
JVM is prohibiting any environment changes?). Any ideas?
Thanks,
Steve