I have a jar file with two Java classes that have basic methods. Is there a way that I can indicate when running the jar file which class to call? I know that the manifest file can be modified to indicate the main class, but since only one class is mentioned, this does not help. I checked the links below, but these problems solve the problem:
stack overflow
manifest file
execute main class from jar
It gives a NoClassDefFoundError.
source
share