Thread: [Galkons Refactored] Error: Could not find or load main class Jframe

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11  
    Registered Member
    Kamiel's Avatar
    Join Date
    Jul 2010
    Age
    25
    Posts
    1,272
    Thanks given
    66
    Thanks received
    166
    Rep Power
    295
    Replace your
    Code:
    public Jframe(String args[]) {
    		super();
    		try {
    			sign.signlink.startpriv(InetAddress.getByName(server));
    			initUI();
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    with

    Code:
    public static void main(String args[]) {
    		super();
    		try {
    			sign.signlink.startpriv(InetAddress.getByName(server));
    			initUI();
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    Reply With Quote  
     

  2. #12  
    Banned

    Join Date
    Jul 2011
    Age
    27
    Posts
    748
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Quote Originally Posted by Kamiel View Post
    Replace your
    Code:
    public Jframe(String args[]) {
    		super();
    		try {
    			sign.signlink.startpriv(InetAddress.getByName(server));
    			initUI();
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    with

    Code:
    public static void main(String args[]) {
    		super();
    		try {
    			sign.signlink.startpriv(InetAddress.getByName(server));
    			initUI();
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    Holy shit me personally kam, Don't know how I missed thast...
    Reply With Quote  
     

  3. #13  
    Banned

    Join Date
    Jul 2011
    Age
    27
    Posts
    748
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Getting two errors with that kamiel


    • Cannot make a static reference to the non-static method initUI() from the type Jframe
    • Constructor call must be the first statement in a constructor



    Couldn't make initUI static due to more shitty errors so I applied jf. to initUI(); but I'm still left with that shit super(); error, it's being called 1st so idk

    Code:
    	public static void main(String args[]) {
    		super();
    		try {
    			sign.signlink.startpriv(InetAddress.getByName(server));
    			jf.initUI();
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 10
    Last Post: 08-11-2012, 08:25 PM
  2. Replies: 15
    Last Post: 04-12-2012, 08:18 AM
  3. Replies: 4
    Last Post: 02-26-2012, 12:54 AM
  4. Replies: 14
    Last Post: 12-30-2011, 03:21 AM
  5. [PI] Cannot find main class Jframe
    By Xx_forgotten_Xx in forum Help
    Replies: 8
    Last Post: 06-30-2010, 03:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •