Hey all: I have a program I wrote using maven. It uses the Jacob library to make API calls into QuickBooks. The version of QuickBooks I am running is 32 bit so I need to make sure to run the program using a 32-bit JRE.
I can run the program from within Eclipse and it runs exactly as it should. I am attaching a pic of my run configuration in Eclipse. Note it points to a 32-bit JRE. Next, I would like to be able to execute by double-clicking an icon from my desktop which executes from a Windows batch file. Here is the content from the batch file: --------------------------------- set JAVA_HOME=C:\Program^ Files^ (x86)\Java\jre1.8.0_501 cd .. call mvn exec:exec -Dexec.executable="java" -Dexec.args="--enable-native-access=ALL-UNNAMED -Djava.library.path=C:\OneDrive\Dev\Jacob -cp %%%%classpath com.fiscalassets.reports.CreateEOYSummary application.properties.FiscalAssets %1" cd bin pause --------------------------------- When I run it, I get this error: ERROR: com.sun.jna.platform.win32.COM.COMInvokeException: Exception occurred.(HRESULT: 80020009) Source: QBXMLRP2.RequestProcessor.2 Description: Could not start QuickBooks. That happens when the program trying to access QuickBooks is 64 bit so it seems Maven is not using the 32 bit JRE I specified. Any ideas why it is not using the correct jvm? Thank you, Neil -- Neil Aggarwal, (972) 834-1565, https://propfinancing.com We offer 30 year loans on single family houses!
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
