[GRASSLIST:1444] RE: java interface with grass

You should use the exec() method of java.lang.Runtime. I have used it
successfully in a project we are participating in. You need to set all the
GRASS environment variables though, I use a shell to to that since the
exec() in the VM we are using doesn't seem to support the passing of
environment variables.

--
Per Henrik Johansen
Norgit AS, http://www.norgit.no

-----Original Message-----
From: jun liu [mailto:jliu_01@yahoo.com]
Sent: Monday, February 12, 2001 6:33 AM
To: GRASSLIST@baylor.edu
Subject: [GRASSLIST:1442] java interface with grass

Hi,

in my transpotation project, i want to use java
program, which will call some GRASS command (such as
v.what ) and then store its result in certain file. so
i need the interface between java and grass.

from GRASS website, i found the GRASS-JNI, but it
seems to be developed to write new grass module using
grass library, not built-in grass command. could
anybody tell me whether there is kind of interface
between java and built-in grass command?

thank you very much.

Jun Liu

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/