To create an executable JAR with dependencies using Maven, you can use the maven-assembly-plugin. This plugin allows you to package your project and its dependencies into a single JAR file.
To get the path of a running JAR file, you can use the java.lang.Class class's getProtectionDomain method and then the getCodeSource method.
To run a JAR file on Windows, you will need to have the Java Runtime Environment (JRE) installed on your system. You can then run the JAR file by double-clicking it or by using the java command in the command prompt.