I have my program's jar packaged with maven. I have the manifest file set to know where my main class is. It executes with no issues on my machine. However, when I gave the jar to a friend to beta test, they are getting the error that the main class can't be found. We are running the same version of JRE
which was the suggested issue in other stack overflow answers I've seen for this.
I've unzipped the jar to make sure the manifest file was actually setting the location of the main class correctly, and it is. So what could be the issue here?
edit: relevant portion of pom.xml for building the manifest
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.dreadylocks.MyCloset.MyCloset</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
When I unzip the jar, these are the contents of the META-INF/MANIFEST.MF
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: saman
Build-Jdk: 1.8.0_251
Main-Class: com.dreadylocks.MyCloset.MyCloset
project structure: