I have the following scenario:
1. I have a Powershell script foo.ps1
2. Within this script, I want to call bar.jar
3. Bar.jar runs a query against an Oracle DB
4. The result of that query should be passed back to foo.ps1
The reason why I am having the jar to do the DB call is because I have the 32 bit Oracle libraries installed, however I cannot force Powershell to run in 32 bit mode. I already tried solutions like
How to execute powershell script in 64 bit machine?
However although it says in the console that it switches to 32 bit mode, I still get the exception "Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed."
Cheers!