why am I getting an error and how to change it
<p>My code is below...I can't see why it says I am having a non static when I am declaring it new</p>

<pre><code>public class JavaApplication1 
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception
    {
        double weight; //weigh in of meeting
        String meetingname = "Monday 1";
        weight = 4;
        int curweek = 1; //current week
        int weeks = 8; //number of weeks
        Meeting[] meetings; //new meetings
        int i; //states witch selection
        String s;
        //String mynames;
        int total = 8; //total number of weeks for competition
        double[] weightloss;
        weightloss = new double[8];

        // TODO code application logic here
        //System.out.println("weight square root " + Math.sqrt(weight)); //learning on weight

        //print out who selection screen
        System.out.println("Week " + curweek + " of competition is");
        System.out.println("weightloss size = " + weightloss.length);
        System.out.println("What would you like to do ");
        System.out.println();
        System.out.println("1. Check on who is winning");
        System.out.println("2. Show all weight ins for a meeting");
        System.out.println("3. Add a weight in for a meeting");
        System.out.println();

        //ask for entry one character
        /*System.out.println("Enter a character");
        i = (char)System.in.read();
        System.in.read(); //captures enter key
        System.out.println("You entered " + i);*/

        //check if file exists

        //if no file exists, create meetings
        s = JOptionPane.showInputDialog("How many meetings will there be");
        i = Integer.parseInt(s);
        JOptionPane.showMessageDialog(null, "There will be " + i + " meetings");

        //how many weeks
        s = JOptionPane.showInputDialog("How many weeks will there be");
        weeks = Integer.parseInt(s);
        JOptionPane.showMessageDialog(null, "There will be " + weeks + " weeks");
        meetings = new Meeting [weeks];


        //enter names of meetings
        String[] mynames = new String [i];
        for(int j=0; j&lt;i ; j++)
        {
            mynames[j] = JOptionPane.showInputDialog("Enter name of meeting " + j);
            JOptionPane.showMessageDialog(null, "Meeting " + j + "is " + s);   
        }

        //fill meeting with names
        fillMeetings(weeks, mynames, meetings);

      //choose a selection
      s = JOptionPane.showInputDialog("How many meetings will there be");
      i = Integer.parseInt(s);
      JOptionPane.showMessageDialog(null, "There will be " + i + " meetings");

      switch(i)
      {
         case 1:
            System.out.println("The current winner is");
            break;
         case 2:
            System.out.println("All weight ins for meeting");
            break;
         case 3:
            System.out.println("Add weigh in for a particular meeting");
            System.out.println("Your in week " + curweek);
            break;
         case 4:
            System.out.println("Current place for all meetings");
            break;
         default:
            System.out.println("Invalid value");

      }
      System.exit(0);  

    }
    public void fillMeetings(int w, String[] names, Meeting... m){
        //fill meetings in array m for w weeks

        for (int i=0; i&lt;names.length; i++)
        {
            m[i].setMeeting(names[i],w);
        }
    }
}
</code></pre>
