Thread: Out of nowhere compile error? This is weird...need help!!

Results 1 to 4 of 4
  1. #1 Out of nowhere compile error? This is weird...need help!! 
    Banned

    Join Date
    Aug 2011
    Posts
    839
    Thanks given
    524
    Thanks received
    208
    Rep Power
    0
    This is honestly sudden. I don't know why I'm getting this error... I've spent 2 hours trying to figure it out. Out of no where this error appeared when I compile, i've tried recognizing the libraries but that didn't work either. If I use eclipse to compile it, it won't let me connect to my client.

    3 hours ago it allowed me to connect no problem.. here's what I get as an error:

    Code:
    src\server\model\players\Client.java:9: error: a type with the same simple name
    is already defined by the single-type-import of Channel
    import org.jboss.netty.channel.Channel;
    ^
    src\server\model\players\Client.java:1408: error: cannot find symbol
                    if (!session.isConnected() || disconnected
                                ^
      symbol:   method isConnected()
      location: variable session of type Channel
    src\server\model\players\Client.java:1416: error: cannot find symbol
                    session.write(packet);
                           ^
      symbol:   method write(Packet)
      location: variable session of type Channel
    src\server\model\players\PlayerHandler.java:147: error: cannot find symbol
                    players[slot].connectedFrom = ((InetSocketAddress) client1.getSe
    ssion().getRemoteAddress()).getAddress().getHostAddress();
    
           ^
      symbol:   method getRemoteAddress()
      location: interface Channel
    src\server\net\login\RS2LoginProtocol.java:35: error: incompatible types: org.jb
    oss.netty.channel.Channel cannot be converted to java.nio.channels.Channel
                    Client cl = new Client(channel, -1);
                                           ^
    Note: Some messages have been simplified; recompile with -Xdiags:verbose to get
    full output
    5 errors
    Press any key to continue . . .
    I'll be so happy if you can help me out and tell me how to fix it thank you
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jul 2014
    Posts
    48
    Thanks given
    2
    Thanks received
    5
    Rep Power
    0
    THe first error explains it. Read it, and fix it. It's defined twice.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Aug 2011
    Posts
    839
    Thanks given
    524
    Thanks received
    208
    Rep Power
    0
    Quote Originally Posted by Versions View Post
    THe first error explains it. Read it, and fix it. It's defined twice.
    Yeah, just realized that I had two of the same classes being identified by two different imports. Oops, thanks m8
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jul 2014
    Posts
    48
    Thanks given
    2
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by iExample View Post
    Yeah, just realized that I had two of the same classes being identified by two different imports. Oops, thanks m8
    Np man. If you have any other issues, PM me. I'll be glad to help you out.
    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. compiler error for 562 client need help please
    By akaswag91111 in forum Help
    Replies: 1
    Last Post: 12-03-2013, 09:23 AM
  2. Dno what this is but need help with client
    By Collision in forum Help
    Replies: 3
    Last Post: 12-24-2012, 05:55 PM
  3. This is weird
    By Glabay in forum Help
    Replies: 10
    Last Post: 05-28-2010, 12:04 AM
  4. Umm.. Okay, now THIS is weird.. (help)
    By 'damaged- in forum Help
    Replies: 10
    Last Post: 12-21-2009, 03:14 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
  •