Thread: Getting this error...

Results 1 to 4 of 4
  1. #1 Getting this error... 
    Registered Member
    Join Date
    Mar 2014
    Posts
    93
    Thanks given
    13
    Thanks received
    18
    Rep Power
    3
    Server was working fine on eclipse. My laptop got 0% and got auto shut down. Now I tryed to run server on eclipse and I get this

    ''Error: Could not find or load main class com.arlania.GameServer''

    What to do? Please help me.

    Im fucked....

    package com.arlania;

    import oshi.SystemInfo;
    import oshi.hardware.CentralProcessor;
    import oshi.hardware.HardwareAbstractionLayer;

    /**
    *
    * @author Nick Hartskeerl <[email protected]>
    *
    */
    public class HardwareInformation {

    private static SystemInfo systemInfo = new SystemInfo();

    private static HardwareAbstractionLayer hardwareAbstractionLayer = systemInfo.getHardware();

    private static CentralProcessor centralProcessor = hardwareAbstractionLayer.getProcessor();

    public static String getSerial() {
    return centralProcessor.getSystemSerialNumber();
    }

    }
    Reply With Quote  
     

  2. #2  
    mush

    Danny's Avatar
    Join Date
    Sep 2013
    Posts
    1,221
    Thanks given
    38
    Thanks received
    316
    Rep Power
    551
    Locate GameServer as your main class
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member Tylwr's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    478
    Thanks given
    105
    Thanks received
    42
    Rep Power
    15
    Quote Originally Posted by zenrr View Post
    Server was working fine on eclipse. My laptop got 0% and got auto shut down. Now I tryed to run server on eclipse and I get this

    ''Error: Could not find or load main class com.arlania.GameServer''

    What to do? Please help me.

    Im fucked....

    package com.arlania;

    import oshi.SystemInfo;
    import oshi.hardware.CentralProcessor;
    import oshi.hardware.HardwareAbstractionLayer;

    /**
    *
    * @author Nick Hartskeerl <[email protected]>
    *
    */
    public class HardwareInformation {

    private static SystemInfo systemInfo = new SystemInfo();

    private static HardwareAbstractionLayer hardwareAbstractionLayer = systemInfo.getHardware();

    private static CentralProcessor centralProcessor = hardwareAbstractionLayer.getProcessor();

    public static String getSerial() {
    return centralProcessor.getSystemSerialNumber();
    }

    }
    Eclipse -> Project -> Clean

    if that doesn't work, delete the run configuration and re-do it.
    Attached image
    Quote my post for me to see your reply.
    Discord: tiller#2854

    Reply With Quote  
     

  4. #4  
    Extreme Donator


    Join Date
    Aug 2016
    Posts
    597
    Thanks given
    109
    Thanks received
    96
    Rep Power
    254
    Just delete the project and re add it?
    Reply With Quote  
     


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: 3
    Last Post: 03-22-2009, 08:13 PM
  2. Replies: 11
    Last Post: 03-15-2009, 08:35 PM
  3. Need help i get this error..
    By Rukin1 in forum Help
    Replies: 6
    Last Post: 02-22-2009, 09:28 AM
  4. i get this error with server
    By .:ranqe:. in forum Help
    Replies: 2
    Last Post: 02-17-2009, 04:34 PM
  5. Getting this error when i add Jframe
    By Jean in forum Help
    Replies: 4
    Last Post: 02-13-2009, 01:20 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •