Thread: getinstance compile error.

Results 1 to 6 of 6
  1. #1 getinstance compile error. 
    Registered Member oledis's Avatar
    Join Date
    May 2010
    Posts
    563
    Thanks given
    22
    Thanks received
    40
    Rep Power
    10
    Code:
    src\server\model\players\content\GrandExchange.java:108: error: cannot find symb
    ol
                                            CycleEventHandler.getInstance().addEvent
    (c, new CycleEvent() {
                                                             ^
      symbol:   method getInstance()
      location: class CycleEventHandler
    src\server\model\players\content\GrandExchange.java:121: error: cannot find symb
    ol
                                                    CycleEventHandler.getInstance().
    addEvent(c, new CycleEvent() {
                                                                     ^
      symbol:   method getInstance()
      location: class CycleEventHandler
    src\server\model\players\content\GrandExchange.java:370: error: cannot find symb
    ol
                            CycleEventHandler.getInstance().addEvent(c, new CycleEve
    nt() {
                                             ^
      symbol:   method getInstance()
      location: class CycleEventHandler
    src\server\model\players\content\GrandExchange.java:404: error: cannot find symb
    ol
                            CycleEventHandler.getInstance().addEvent(c, new CycleEve
    nt() {
                                             ^
      symbol:   method getInstance()
      location: class CycleEventHandler
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    4 errors
    Press any key to continue . . .


    Any idea?


    Spoiler for Vouches:
    Quote Originally Posted by `Michael
    Thanks for fixing that client problem payed 5m and he delivered vouch for ya bro Oledis!
    Quote Originally Posted by PavillionX View Post
    Vouche for this guy! helped me fix it and fast!
    Quote Originally Posted by joopz23
    Vouch for you man fixed an error that was so important to fix thanks
    Quote Originally Posted by eduber1 View Post
    vouch for this guy helped me out with a few problems i had worked fast great person to work with will use his services in the future!


    Reply With Quote  
     

  2. #2  
    Registered Member oledis's Avatar
    Join Date
    May 2010
    Posts
    563
    Thanks given
    22
    Thanks received
    40
    Rep Power
    10
    bump


    Spoiler for Vouches:
    Quote Originally Posted by `Michael
    Thanks for fixing that client problem payed 5m and he delivered vouch for ya bro Oledis!
    Quote Originally Posted by PavillionX View Post
    Vouche for this guy! helped me fix it and fast!
    Quote Originally Posted by joopz23
    Vouch for you man fixed an error that was so important to fix thanks
    Quote Originally Posted by eduber1 View Post
    vouch for this guy helped me out with a few problems i had worked fast great person to work with will use his services in the future!


    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Feb 2012
    Posts
    584
    Thanks given
    0
    Thanks received
    13
    Rep Power
    0
    getinstance isnt declared.
    Reply With Quote  
     

  4. #4  
    Father Of Lies


    Join Date
    May 2012
    Age
    26
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    public void getInstance() {
    return this;
    }

    There's a start.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Dec 2008
    Posts
    2,097
    Thanks given
    1,419
    Thanks received
    732
    Rep Power
    0
    Quote Originally Posted by jakeyy View Post
    public void getInstance() {
    return this;
    }

    There's a start.
    Lol no. If you read the stack trace you would know getInstance is a static method.

    Post CycleEventHandler.java

    Chances are you'll have a constant in CycleEventHandler similar to:

    Code:
    public static final CycleEventHandler instance = new CycleEventHandler();
    so all you would need to do is add this method:

    Code:
    public static CycleEventHandler getInstance() {
    return instance;
    }
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Registered Member oledis's Avatar
    Join Date
    May 2010
    Posts
    563
    Thanks given
    22
    Thanks received
    40
    Rep Power
    10
    Quote Originally Posted by Jimmy View Post
    Lol no. If you read the stack trace you would know getInstance is a static method.

    Post CycleEventHandler.java

    Chances are you'll have a constant in CycleEventHandler similar to:

    Code:
    public static final CycleEventHandler instance = new CycleEventHandler();
    so all you would need to do is add this method:

    Code:
    public static CycleEventHandler getInstance() {
    return instance;
    }

    That makes sense.


    Thank you It worked.


    Spoiler for Vouches:
    Quote Originally Posted by `Michael
    Thanks for fixing that client problem payed 5m and he delivered vouch for ya bro Oledis!
    Quote Originally Posted by PavillionX View Post
    Vouche for this guy! helped me fix it and fast!
    Quote Originally Posted by joopz23
    Vouch for you man fixed an error that was so important to fix thanks
    Quote Originally Posted by eduber1 View Post
    vouch for this guy helped me out with a few problems i had worked fast great person to work with will use his services in the future!


    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. Compile ERROR!
    By PkedFirst in forum Help
    Replies: 8
    Last Post: 06-14-2011, 11:06 AM
  2. Compile Error, Please Help!
    By TheSickSign in forum Help
    Replies: 8
    Last Post: 11-07-2010, 02:12 PM
  3. compile error
    By rova1 in forum Help
    Replies: 2
    Last Post: 09-04-2010, 09:55 PM
  4. Compile error
    By Africa in forum Help
    Replies: 1
    Last Post: 03-30-2010, 12:18 AM
  5. Compile error...
    By alfiep123 in forum Help
    Replies: 12
    Last Post: 12-24-2009, 04:22 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
  •