|
|
|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

04-22-2008, 02:40 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
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?
|
|

04-22-2008, 02:43 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
import this class.
|
|

04-22-2008, 02:46 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
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.
|
|

04-22-2008, 02:47 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
|
|
|
post your complete error details....
|
|

04-22-2008, 02:50 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hei, IOException Class should be imported.
|
|

04-22-2008, 02:50 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
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?
|
|

04-22-2008, 02:51 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
I have imported the io class
|
|

04-22-2008, 02:51 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Make Your Class As Abstract.
|
|

04-22-2008, 02:53 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
But then i get another error messgae sayign that Helper is abstract, cannot be instantiated???
|
|

04-22-2008, 02:56 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Ok, Do One Thing Remove Abstract and give Dummy Implementations
For All Abstract Methods In Interface which you implement. just put {}
|
|

04-22-2008, 02:59 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
What u mean Dummy Implementations?
|
|

04-22-2008, 03:00 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Just Write The Method like this
returnAverage( String )
{
}
Do This For All The Methods Of Interface
|
|

04-22-2008, 03:01 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
And Just Return Some Default Values.
|
|

04-22-2008, 03:04 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
Within the interface i have
public void ReturnAverage (String Average) throws RemoteException;
And this is giving me the same error as abstract one
|
|

04-22-2008, 03:07 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
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?
|
|

04-22-2008, 03:09 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
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
|
|

04-22-2008, 03:32 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Then You Need To As
public void ReturnAverage (String Average) throws RemoteException{}
|
|

04-22-2008, 03:34 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
|
|
Originally Posted by denisdoherty
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
|
|

04-22-2008, 03:39 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hope That The Problem Is Solved?
|
|

04-22-2008, 03:39 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 31
|
|
|
When i put public void ReturnAverage (String Average) throws RemoteException
{
}
I get an error on the { saying interface mothods cannot have body?
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
All times are GMT +3. The time now is 04:58 PM.
|
|
VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org