Re: My program executes from Eclipse, but not a batch file
Mantas Gridinas <[email protected]> Mon, 27 Jul 2026 18:05:05 +0000
| Newsgroups | gmane.comp.jakarta.turbine.maven.user |
|---|---|
| Message-ID | <CAE9hW8SmRjqoC5dcFX5HLU6B-=rE3kqszNG0S3wz-KJBVE4JUQ@mail.gmail.com> |
--00000000000098870b06579b90aa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Check that your PATH contains only the 32 bit jvm. You can also check with --version flag which jvm is being picked up. Another option would be to use toolchains plugin. On Mon, Jul 27, 2026 at 5:55=E2=80=AFPM Neil Aggarwal <[email protected]= om> wrote: > 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 t= o > 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=3DC:\Program^ Files^ (x86)\Java\jre1.8.0_501 > > cd .. > call mvn exec:exec -Dexec.executable=3D"java" > -Dexec.args=3D"--enable-native-access=3DALL-UNNAMED > -Djava.library.path=3DC:\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] --=20 // Mantas --00000000000098870b06579b90aa--