[GRASSLIST:1443] Re: java interface with grass

Eric G . Miller egm2 at jps.net
Mon Feb 12 01:10:12 EST 2001

On Sun, Feb 11, 2001 at 09:33:14PM -0800, jun liu wrote:
> 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

I don't think so, since grass commands are really stand alone programs
that just expect a few environment variables to be set.  I don't know if
java really allows you to "shell" commands like in C. But you'd need to
do something like that.

Eric G. Miller <egm2 at jps.net>

More information about the grass-user mailing list