On Sat, 2005-05-28 at 05:20 -0700, GfxGuy wrote:
> Yes and no... if I want to make it portable, the idea is that only a
> small amount of native code would have to be rewritten and it would
> integrate better with each OS. I guess this could be packed off in
> some class that would have to be rewritten, too. Just seems to me
> there is a right way and a quick and easy way, they are not the same
> this time.
>
Trust me, this is /a/ right way. JNI is /not/ a right way to do this.
It's not really the right way to do anything, IMHO, but especially not
simple stuff like this. There are already myriad ways that one program
can talk to another, VM or no.
> Seeing as how I do need it quickly, though, and I'm not having much
> success with JNI, that I'll end up doing it this way now. Luckily, in
> an apparently strange twist of fate, we are actually (painfully slowly)
> replacing Windows boxes with Linux boxes.
>
Does windows even have file ownership?
Also seems to me that if you are going to a system without a chown
binary, then you need to just write one. You still end up with a small
bit of native code, but probably only a one-liner that compiles without
the JNI libs.
--
[Ross A. Bamford] [ross AT the.website.domain]
Roscopeco Open Tech ++ Open Source + Java + Apache + CMF
http://www.roscopec0.f9.co.uk/ +
in