What's wrong with my main method, and why is it throwing this exception? [on hold]

60
June 19, 2017, at 02:27 AM

I'm a new Java developer, writing my first real Java application, which is a calendar viewer. Here's the code I wrote which is indicated as having errors:

public static void main (String args[]) {
}

(Yeah, that's it.)

And here's the exception message:

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
    at Calendar.main(Calendar.java:44)

(The main method is line 44.)

So I don't have a whole lot to go on, and it seems that where I declare the main method is the problem, but I can't figure out why. There is code before this, but I'm only importing packages and declaring static variables and such

READ ALSO
Need to change the background of a TabbedPane in swing and backgroundColor of a panel

Need to change the background of a TabbedPane in swing and backgroundColor of a panel

Please find the imageI marked one tab which is colored blue

34
Unable to connect ThingSpeak jar files to java program

Unable to connect ThingSpeak jar files to java program

I used ant to build the buildxml file of ThingSpeak and it shows build successful

47
How to pass data stored in excel sheet as parameters under @Parameter in junit selenium?

How to pass data stored in excel sheet as parameters under @Parameter in junit selenium?

I have around 10 userIds which are pure numbers stored in a excel sheet and am using getUserIds() method to read input fileI want to pass them as Parameters under @Parameters instead of passing individual user ids which also i've tried but commented below

62
Out Of Memory when selecting images from phone storage

Out Of Memory when selecting images from phone storage

I am creating an app in which you store information about clients in your phoneI also store bitmap locations to a database that when loaded are thumbnail size in a gridView when viewing the clients information like so

52