I am building a project in a Windows Eclipse environment and then trying to test the project jar using the test jar in a Unix environment . When I run I get what is shown below. I am using Maven with the assembly plugin to package the project with the Test Jar and I can see the class that is supposedly missing inside the jar when I run the -tf command.
java -cp MyServerTest.jar:junit.jar junit.runner.JunitCore com.MyServer.services.ZoweAuthServiceTest
Results in:
java.lang.NoClassDefFoundError: com.MyServer.services.ZoweAuthService at com.MyServer.services.ZoweAuthServiceTest.testQueryToZowe(ZoweAuthServ iceTest.java:40) Caused by: java.lang.ClassNotFoundException: com.MyServer.services.ZoweAuthService