Thread: Cant run Insanity with Eclipse

Results 1 to 8 of 8
  1. #1 Cant run Insanity with Eclipse 
    Registered Member
    Join Date
    Apr 2015
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I get this error when I try to run it

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    IoAcceptor cannot be resolved to a type
    SocketAcceptor cannot be resolved to a type
    SocketAcceptorConfig cannot be resolved to a type
    SocketAcceptorConfig cannot be resolved to a type
    IoAcceptor cannot be resolved to a type
    IoAcceptor cannot be resolved to a type

    at server.Server.main(Server.java:115)
    Reply With Quote  
     

  2. #2  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Quote Originally Posted by HorizonF View Post
    I get this error when I try to run it

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    IoAcceptor cannot be resolved to a type
    SocketAcceptor cannot be resolved to a type
    SocketAcceptorConfig cannot be resolved to a type
    SocketAcceptorConfig cannot be resolved to a type
    IoAcceptor cannot be resolved to a type
    IoAcceptor cannot be resolved to a type

    at server.Server.main(Server.java:115)
    Did you add the mina library as an archive?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2015
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Vesia View Post
    Did you add the mina library as an archive?
    I downloaded a mina library from some site and added it to the jars but same result, am i downloading the right thing ?
    Reply With Quote  
     

  4. #4  
    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 HorizonF View Post
    I downloaded a mina library from some site and added it to the jars but same result, am i downloading the right thing ?
    Re-add the project, or if you know how to add a library to the project via properties.
    Attached image
    Quote my post for me to see your reply.
    Discord: tiller#2854

    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2015
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Tylwr View Post
    Re-add the project, or if you know how to add a library to the project via properties.
    Did both none seemed to work, how do i root the mina library into the "add library"
    Reply With Quote  
     

  6. #6  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    This looks like a library issue. When you open the project up under eclipse you should have some errors already, without even running the server. If you hover over the errors and you're unable to import anything you're looking for it's probably a library issue (assuming you didn't touch anything)

    1. Download Mina jar file (make sure to get the updated one, some servers have outdated ones)
    2. Make sure you have a libraries folder, most servers are names deps, or libs.
    3. Open project under eclipse, select configure build path.
    - Make sure you have your Mina jar file in the correct folder. (you may have to refresh eclipse f5 I believe.)
    4. Select deps or libs --> select add jar, look for that jar under deps or libs if it's not there refresh the project and it should show up.

    Make sure when you add libraries it doesn't say refrenced libraries, if it says that you're doing it wrong. You want to make sure its under user so whenever you transfer the server files eclipse will recognize those libraries on someone elses computer. This is very important when you're working with clients because you want other users to be able to use those libraries. Example, if you used JavaFX to create an application and you used referenced libraries, other users may not be able to run it. (Unless they have the JavaFX libraries already) So you have to use user libraries so the project can recognize its own libraries; therefore other people can use it without having to download the libraries beforehand.

    Hope this helps, I'm doing this without looking at eclipse but I configure libraries all the time.
    Attached image
    Reply With Quote  
     

  7. #7  
    EpicPks Is Back!

    Join Date
    Jun 2012
    Posts
    480
    Thanks given
    12
    Thanks received
    16
    Rep Power
    29
    If 7winds doesn't work, add me on skype I'll give it a try - bobopvp
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by 7Winds View Post
    This looks like a library issue. When you open the project up under eclipse you should have some errors already, without even running the server. If you hover over the errors and you're unable to import anything you're looking for it's probably a library issue (assuming you didn't touch anything)

    1. Download Mina jar file (make sure to get the updated one, some servers have outdated ones)
    2. Make sure you have a libraries folder, most servers are names deps, or libs.
    3. Open project under eclipse, select configure build path.
    - Make sure you have your Mina jar file in the correct folder. (you may have to refresh eclipse f5 I believe.)
    4. Select deps or libs --> select add jar, look for that jar under deps or libs if it's not there refresh the project and it should show up.

    Make sure when you add libraries it doesn't say refrenced libraries, if it says that you're doing it wrong. You want to make sure its under user so whenever you transfer the server files eclipse will recognize those libraries on someone elses computer. This is very important when you're working with clients because you want other users to be able to use those libraries. Example, if you used JavaFX to create an application and you used referenced libraries, other users may not be able to run it. (Unless they have the JavaFX libraries already) So you have to use user libraries so the project can recognize its own libraries; therefore other people can use it without having to download the libraries beforehand.

    Hope this helps, I'm doing this without looking at eclipse but I configure libraries all the time.
    Oh my lord thank god for these help forums, I've been searching for this fix for 2 months! I had 280 errors randomly after i updated java and once i did this every error just dissipated! Thanks so much, rep++
    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: 2
    Last Post: 02-13-2015, 07:20 PM
  2. running server with eclipse
    By E-Blue in forum Help
    Replies: 6
    Last Post: 05-01-2014, 02:16 AM
  3. 718 running source with Eclipse error
    By daggertail90 in forum Help
    Replies: 3
    Last Post: 04-07-2013, 05:39 PM
  4. Run Error with Eclipse
    By Nirvana in forum Application Development
    Replies: 9
    Last Post: 01-09-2013, 02:26 AM
  5. Replies: 1
    Last Post: 09-04-2012, 06:50 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
  •