views:

213

answers:

2

Anyone know of a good library to invoke powershell scripts from within Java? I'm currently spawning a seperate process (powershell.exe) and then parse the output, but it would really be nice if I can leverage Powershell's 'power' by getting objects back from a powershell call.

Edit:

Otherwise, anyone else doing such interop? What method do you use?

A: 

The downside to crossplatform tools is that you only have a common subset of tools for each platform - This is not possible through Java. You could do some JNI or use the method you have already tried

Romain Hippeau
A: 

I've found Powershell Bridge (PSB). Still need to look into it though

Hannes de Jager