I have an application developed in NetBeans / Maven that can be launched via the command line with
mvn exec:exec "-Dexec.executable=C:\\Java\\jdk1.6.0_33\\bin\\java.exe" "-Dexec.args=-Dlog4j.properties=... -classpath %classpath com.xxx.MyLauncher" -Dexec.classpathScope=runtime -Dexec.workingdir=
Now I need to start the application using the standard java command line method, for example:
java -Dlog4j.properties=... -jar myapp-1.2-SNAPSHOT.jar
Unfortunately, this does not work the same as I get the following exception:
opencard.core.util.OpenCardPropertyLoadingException: property file not found
Questions:
- What is the difference between running applications using Exec-Maven-plugin and standard java execution on the command line?
- Is there an easy way to convert the execution of a Maven script to a standard command line?
- How to successfully launch the application?
source share