hie every one ,here is my actually Question ..
Q:
how can we know the "Main "method class name ??is there any method to know the class name of the main method ??
my project is struck here
actually i am having 10 classes in my java program after i complied i got 10 different classes names ,in run time i have to know the class name of the main method ,then only i can accomplish my task .
my project :a simple java editor
when any one click on the compile button it searches class name of the main method , i am tried to get the class name of the main method but every time i am failed :( , so please help how can we know the class name of the main method ..
Q:
how can we know the "Main "method class name ??is there any method to know the class name of the main method ??
my project is struck here
actually i am having 10 classes in my java program after i complied i got 10 different classes names ,in run time i have to know the class name of the main method ,then only i can accomplish my task .
my project :a simple java editor
when any one click on the compile button it searches class name of the main method , i am tried to get the class name of the main method but every time i am failed :( , so please help how can we know the class name of the main method ..
Comment