[armedbear-devel] Several ABCL/Java questions
evenson at panix.com
Tue Jan 4 11:05:29 UTC 2011
On 1/4/11 11:25 , Alessio Stalla wrote:
> On Tue, Jan 4, 2011 at 10:28 AM, Didier Verna<didier at lrde.epita.fr> wrote:
>> 2/ ABCL doesn't seem to provide a [set|put]env function. From what I can
>> gather from the internet, that would be because there's no such thing
>> in Java. I've seen some nasty tricks around consisting in modifying
>> the (application-local) initial memory mapping of the environment,
>> but that's all. Is this correct ?
> I'd say yes, it's correct. But what are you trying to achieve?
Access to reading environment variables to the JVM process is available
by the function on the EXT:GETENV symbol. When spawning sub-process,
one can use the ProcessBuilder interface Alessio described.
Low level stuff for which you know the local system analogs via ANSI C
linkage would be well served by using CFFI to wrap calls to
[abcl-cffi-jna]. We have a [putative patch to run JNA with the
callbacks made possible via constructing the necessary Java interfaces
on-the-fly made possible on abcl-0.24-dev] that we welcome feedback
on esp. wrt. improving the ABCL system interfaces.
"A screaming comes across the sky. It has happened before, but there
is nothing to compare to it now."
More information about the armedbear-devel