Thread: Hyperion compiling error.

Results 1 to 4 of 4
  1. #1 Hyperion compiling error. 
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    29
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    Fixed.
    Reply With Quote  
     

  2. #2  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    Quote Originally Posted by Aidi View Post
    Code:
    NPCDefinition.java:15: package org.hyperion.rs2.event.impl does not exist
    import org.hyperion.rs2.event.impl.PestControlEvent;
                                      ^
    NPCDefinition.java:16: package org.hyperion.util does not exist
    import org.hyperion.util.XStreamUtil;
                            ^
    NPCDefinition.java:30: cannot find symbol
    symbol  : variable XStreamUtil
    location: class org.hyperion.rs2.model.NPCDefinition
                    List<NPCDefinition> defs = (List<NPCDefinition>) XStreamUtil.get
    XStream().fromXML(new FileInputStream("data/npcDefinitions.xml"));
                                                                     ^
    NPCDefinition.java:155: cannot find symbol
    symbol  : class PestControlEvent
    location: class org.hyperion.rs2.model.NPCDefinition
                    World.getWorld().submit(new PestControlEvent());
                                                ^
    NPCDefinition.java:155: cannot find symbol
    symbol  : variable World
    location: class org.hyperion.rs2.model.NPCDefinition
                    World.getWorld().submit(new PestControlEvent());
                    ^
    5 errors
    There are the imports:

    import org.hyperion.rs2.event.impl.PestControlEvent;
    import org.hyperion.util.XStreamUtil;

    And the classes are in the correct spots.
    Might not be the solution, but did you add the package declarations in those classes?

    Code:
    package org.hyperion.rs2.event.impl;
    
    public class PestControlEvent extends Event {
    
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    29
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    Quote Originally Posted by PSNB View Post
    Might not be the solution, but did you add the package declarations in those classes?

    Code:
    package org.hyperion.rs2.event.impl;
    
    public class PestControlEvent extends Event {
    
    }
    The packages are added already to the classes.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Apr 2010
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    lol ahah .
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •