So I have a main inside one of my java classes. It is packaged in a jar(test.jar) and that jar is placed in an ear(test.ear). The ear is deployed to the server.
Now I want to run that classes main by using the ear in my classpath. I know that if I just used the jar I could get to that class but the jar is in the ear already and I don't really want to put the jar in two places.