OK, I set the system property in my pom.xml file, see attached. But I still get the same error when I run this command: mvn exec:java -Dexec.mainClass=com.fiscalassets.tax.PrintForm1098s -Dexec.args=application.properties.FiscalAssets
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.1:java (default-cli) on project FAIntegration: An exception occurred while executing the Java class. no jacob-1.20-x64 in java.library.path: C:\Program Files\Java\jdk-17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Cygwin\usr\local\bin;C:\Cygwin\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files\Google\Google Apps Sync;C:\Program Files\Maven\bin;C:\Users\neil\AppData\Local\Microsoft\WindowsApps;. -> [Help 1] The directory is not even listed in the directory list the JVM is searching for. Did I get the configuration wrong? Thank you, Neil -- Neil Aggarwal, 972-834-1565, http://propfinancing.com We offer 30 year loans on single family houses!
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>FAIntegration</groupId> <artifactId>FAIntegration</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>com.jacob</groupId> <artifactId>jacob</artifactId> <version>1.20</version> </dependency> <dependency> <groupId>com.propfinancing</groupId> <artifactId>pflib</artifactId> <version>5.0.0</version> </dependency> <dependency> <groupId>in.hiaust</groupId> <artifactId>unitedstates</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.19.0</version> </dependency> </dependencies> <build> <sourceDirectory>src</sourceDirectory> <resources> <resource> <directory>src</directory> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.1.1</version> <goals> <goal>java</goal> </goals> <configuration> <systemProperties> <systemProperty> <key>java.library.path</key> <value>C:\OneDrive\Dev\Jacob</value> </systemProperty> </systemProperties> </configuration> </plugin> </plugins> </build> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org