Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2008, 02:40 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-22-2008, 02:43 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
import this class.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-22-2008, 02:46 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-22-2008, 02:47 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
post your complete error details....
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-22-2008, 02:50 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei, IOException Class should be imported.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 04-22-2008, 02:50 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 04-22-2008, 02:51 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
I have imported the io class
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 04-22-2008, 02:51 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Make Your Class As Abstract.
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 04-22-2008, 02:53 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
But then i get another error messgae sayign that Helper is abstract, cannot be instantiated???
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 04-22-2008, 02:56 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Ok, Do One Thing Remove Abstract and give Dummy Implementations

For All Abstract Methods In Interface which you implement. just put {}
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 04-22-2008, 02:59 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
What u mean Dummy Implementations?
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 04-22-2008, 03:00 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Just Write The Method like this

returnAverage( String )
{
}

Do This For All The Methods Of Interface
Bookmark Post in Technorati
Reply With Quote
  #13 (permalink)  
Old 04-22-2008, 03:01 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
And Just Return Some Default Values.
Bookmark Post in Technorati
Reply With Quote
  #14 (permalink)  
Old 04-22-2008, 03:04 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
Within the interface i have

public void ReturnAverage (String Average) throws RemoteException;

And this is giving me the same error as abstract one
Bookmark Post in Technorati
Reply With Quote
  #15 (permalink)  
Old 04-22-2008, 03:07 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
  #16 (permalink)  
Old 04-22-2008, 03:09 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #17 (permalink)  
Old 04-22-2008, 03:32 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Then You Need To As
public void ReturnAverage (String Average) throws RemoteException{}
Bookmark Post in Technorati
Reply With Quote
  #18 (permalink)  
Old 04-22-2008, 03:34 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #19 (permalink)  
Old 04-22-2008, 03:39 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hope That The Problem Is Solved?
Bookmark Post in Technorati
Reply With Quote
  #20 (permalink)  
Old 04-22-2008, 03:39 PM
Member
 
Join Date: Apr 2008
Posts: 31
denisdoherty is on a distinguished road
When i put public void ReturnAverage (String Average) throws RemoteException
{
}

I get an error on the { saying interface mothods cannot have body?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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