Reputation: 189
My application is almost complete and I needed to change the package names. So I refactored the names and after I renamed the package that contained the MAIN class, this warning is getting displayed - " No definition found for exported static routine: .main(String[])".
On googling, I found that this is because compiler didn't find any entry points for the application and that's why the application is not getting loaded in to the simulator/device.
Can anybody please help me on this ?
Thanks in advance !!
Upvotes: 1
Views: 125
Reputation: 8920
As the error message implies, you must have a method with the signature:
public static void main(String[] args) {
}
defined in one of your classes. It doesn't matter which but it is common to define it in the class that extends Application or UiApplication since this method creates the Application or UiApplication object and enters the event dispatcher. You must have had such a method at some point if you ever ran the application on the simulator or device.
Upvotes: 1