I am trying to create executable jar out of a java project. the java project has the main method in a java file named MainTest.java. To create the executable jar, I did the following:
right click on the project->export->java->runnable jar->next button
Then I get a window with a list asking me to specify the launch configuration, the problem is , despit the java project has a main method in the file namedMainTest.java, this file is not listed in the list
how to solve the problem or how make the java file that contains the main method listed among the others in the list.
Note: the namedMainTest.java has the main method but it is empty "does nothing"
update
I am using Eclipse. and please have a look at the screen shot below. on the left , is the project with the java file that contains the main class "MainTest.java" and on the right, a list of classes and the "MainTest.java" is not among them instead there is another class names "TestMatrix.java" and i do not know why it is there
