Page 1 of 2 12 LastLast
Results 1 to 20 of 29
  1. #1
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default Compling problem

    When i go to compile my code i am getting an error cannot resolve symbol - class IOException, i have the same code in another part of the application and it i working fine. Does anyone know how to g et around this?

  2. #2
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    import this class.

  3. #3
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    What class?

    I took the implements interface out but i need that to be in the code as i have it going back to an interface.

  4. #4
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    post your complete error details....

  5. #5
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei, IOException Class should be imported.

  6. #6
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    I am getting another error now when i put back in the implements Interface. I am getting the error Helper is not abstract and does not override abstract method ReturnAverage(java.lang.String) in Interface. Do u know what this means?

  7. #7
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    I have imported the io class

  8. #8
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Make Your Class As Abstract.

  9. #9
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    But then i get another error messgae sayign that Helper is abstract, cannot be instantiated???

  10. #10
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Ok, Do One Thing Remove Abstract and give Dummy Implementations

    For All Abstract Methods In Interface which you implement. just put {}

  11. #11
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    What u mean Dummy Implementations?

  12. #12
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Just Write The Method like this

    returnAverage( String )
    {
    }

    Do This For All The Methods Of Interface

  13. #13
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    And Just Return Some Default Values.

  14. #14
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    Within the interface i have

    public void ReturnAverage (String Average) throws RemoteException;

    And this is giving me the same error as abstract one

  15. #15
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    See I told you to remove The Abstract From the class.

    After Doing That Tell Me What Is The Error Message Which You Are

    Getting?

  16. #16
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    I have romoved the abstract from the class. and have public void ReturnAverage (String Average) throws RemoteException; that in the interface and i am getting the error: Helper is not abstract and does not have override abstract method ReturnAverage(java.lang.String) in Interface

  17. #17
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Then You Need To As
    public void ReturnAverage (String Average) throws RemoteException{}

  18. #18
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    Quote Originally Posted by denisdoherty View Post
    I have romoved the abstract from the class. and have public void ReturnAverage (String Average) throws RemoteException; that in the interface and i am getting the error: Helper is not abstract and does not have override abstract method ReturnAverage(java.lang.String) in Interface
    Just write these code in your class

    public void ReturnAverage (String Average) throws RemoteException
    {
    }

    when you are implementing interface you have to implement all the methods of it until or unless you mark your class as abstract.

    sanjeev

  19. #19
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hope That The Problem Is Solved?

  20. #20
    denisdoherty is offline Member
    Join Date
    Apr 2008
    Posts
    31
    Rep Power
    0

    Default

    When i put public void ReturnAverage (String Average) throws RemoteException
    {
    }

    I get an error on the { saying interface mothods cannot have body?

Page 1 of 2 12 LastLast

Posting Permissions

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