I have the unfortunate task of having to move a Windows-based Pro*C app to Java. The .pc file has a bit of complex code in it that I'd rather not have to reproduce.

Is there any way to easily migrate the .pc functions, or better yet call or otherwise use the .pc functions from within Java?

Or am I forced to simply rebuild the logic in Java and dump any remnants of the Pro*C code?