Thread: Cannot start server!

Results 1 to 5 of 5
  1. #1 Cannot start server! 
    Banned
    Join Date
    Nov 2011
    Posts
    37
    Thanks given
    1
    Thanks received
    0
    Rep Power
    0
    Hello mopar,
    The few last weeks i was working on my new project.
    I edited a few item-stats, after that the server won't start.
    I already replaced the item.cfg with tons of other WORKING item.cfg files, but server still doesn't start.
    There are no Spaces in each line, checked already.
    Replaced the old itemhandler too, still doesn't work.

    I had 4 Errors before, now there's 1 Error left:
    Code:
    Exception in thread "Thread-1"Exception in thread "main"java.lang.NoClassDefFoundError: Could not initialize class server.Server
    I'm not sure why it doesn't find any class, the run.bat worked before.

    *i know eclipse is better & more advanced, but it doesn't work at my windows 8 laptop alm:*

    Thanks for reading, Sh0ck

    **FIX:
    Eclipse works now somehow,
    It gives me the following errors now:
    Code:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 17
            at server.world.ItemHandler.loadItemList(ItemHandler.java:365)
            at server.world.ItemHandler.<init>(ItemHandler.java:33)
            at server.Server.<clinit>(Server.java:61)
    Like i said, i already replaced itemhandler class & item.cfg with a working one, but still doesn't work!

    This is the method:
    Code:
    public boolean loadItemList(String FileName) {
                    String line = "";
                    String token = "";
                    String token2 = "";
                    String token2_2 = "";
                    String[] token3 = new String[10];
                    boolean EndOfFile = false;
                    int ReadMode = 0;
                    BufferedReader characterfile = null;
                    try {
                            characterfile = new BufferedReader(new FileReader("./Data/cfg/"+FileName));
                    } catch(FileNotFoundException fileex) {
                            Misc.println(FileName+": file not found.");
                            return false;
                    }
                    try {
                            line = characterfile.readLine();
                    } catch(IOException ioexception) {
                            Misc.println(FileName+": error loading file.");
                            return false;
                    }
                    while(EndOfFile == false && line != null) {
                            line = line.trim();
                            int spot = line.indexOf("=");
                            if (spot > -1) {
                                    token = line.substring(0, spot);
                                    token = token.trim();
                                    token2 = line.substring(spot + 1);
                                    token2 = token2.trim();
                                    token2_2 = token2.replaceAll("\t\t", "\t");
                                    token2_2 = token2_2.replaceAll("\t\t", "\t");
                                    token2_2 = token2_2.replaceAll("\t\t", "\t");
                                    token2_2 = token2_2.replaceAll("\t\t", "\t");
                                    token2_2 = token2_2.replaceAll("\t\t", "\t");
                                    token3 = token2_2.split("\t");
                                    if (token.equals("item")) {
                                            int[] Bonuses = new int[12];
                                            for (int i = 0; i < 12; i++) {
                                                    if (token3[(6 + i)] != null) {
                                                            Bonuses[i] = Integer.parseInt(token3[(6 + i)]);
                                                    } else {
                                                            break;
                                                    }
                                            }
                                            newItemList(Integer.parseInt(token3[0]), token3[1].replaceAll("_", " "), token3[2].replaceAll("_", " "), Double.parseDouble(token3[4]), Double.parseDouble(token3[4]), Double.parseDouble(token3[6]), Bonuses);
                                    }
                            } else {
                                    if (line.equals("[ENDOFITEMLIST]")) {
                                            try { characterfile.close(); } catch(IOException ioexception) { }
                                            return true;
                                    }
                            }
                            try {
                                    line = characterfile.readLine();
                            } catch(IOException ioexception1) { EndOfFile = true; }
                    }
                    try { characterfile.close(); } catch(IOException ioexception) { }
                    return false;
            }
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2013
    Posts
    47
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    You're talking bs, since im using windows 8 and the eclipse is working perfectly...
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Nov 2011
    Posts
    37
    Thanks given
    1
    Thanks received
    0
    Rep Power
    0
    Yh, i figured out why my eclipse didn't worked. Now calm your tits
    Reply With Quote  
     

  4. #4  
    Kanketsu
    JacobiYounger's Avatar
    Join Date
    Aug 2009
    Posts
    723
    Thanks given
    49
    Thanks received
    31
    Rep Power
    31
    What else have you edited? Try deleting everything in your item stats, so leaving it like this.

    item = 0 Dwarf_remains The_body_of_a_Dwarf_savaged_by_Goblins. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    [ENDOFITEMLIST]
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2013
    Posts
    115
    Thanks given
    24
    Thanks received
    6
    Rep Power
    0
    Quote Originally Posted by sh0ck View Post
    Hello mopar,

    ugh sorry buddy, wrong website
    welcome to rune-server
    [ad][/ad]

    currently in Beta! need testers for bugs, staff positions available, limited!
    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. Error when starting Server?
    By Continue in forum Help
    Replies: 0
    Last Post: 12-31-2009, 05:22 PM
  2. Error Starting Server?
    By SilentZPrO in forum Help
    Replies: 3
    Last Post: 10-15-2009, 02:10 AM
  3. NPC Walking Help - Starting Servers Again
    By Seven Lives in forum Help
    Replies: 11
    Last Post: 07-12-2009, 04:10 AM
  4. [Bulby 508] Suddenly cannot start my server..
    By Re4master8 in forum Help
    Replies: 6
    Last Post: 06-26-2009, 02:21 PM
  5. Starting server from scratch
    By w::v::d in forum Help
    Replies: 1
    Last Post: 02-19-2009, 06:16 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
  •