Saturday, March 27, 2010

Java calling Powershell Script via C# & JNI

I've been messing around with JNI for a few weeks now, all started for one little purpose, executing Powershell script from Java.
Well the journey started using Java's Runtime object, but problems with the socket opened to the Powershell process forced me to choose another way.
Well I do come from a .NET background and I love C# so I ventured a bit on the options C# have interacting with Powershell and found the best way (for me :) ) to make it so.

More information + some code examples and free source code can
be found under my project in google-code :
http://code.google.com/p/jnicsharp
Love to get any thoughts, improvements, or even silly notes about it, enjoy :-)