Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
catching exception java.io.IOException
Accela Moon
Greenhorn
Posts: 20
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
public void returnLocation() { String sqlQuery; sqlQuery = "SELECT * FROM Receiver WHERE user_id = '" + this.userName + "'"; clientObj.sendSql(this.type1, this.type2, sqlQuery); try { clientObj.processConnection(); } catch(IOException ioException) { System.out.println(ioException); } finally { this.location=clientObj.processedObj.location; } }
Error:
C:\Documents and Settings\Moon\My Documents\Navi Projects\School\ OOPJ Project\Prototype\GPS-Lite v2 Alpha Debugger\SEARCH.java:87: cannot resolve symbol symbol : class IOException location: class SEARCH catch(IOException ioException) { ^ 1 error
[ edited to break long line -ds ]
[ April 18, 2004: Message edited by: Dirk Schreckmann ]
Julie de Wet
Greenhorn
Posts: 17
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You haven't importet java.io.IOException, so the compiler doesn't recognise IOException.
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Socket ObjectStream is Accesible only once
Object() in java.lang.Object cannot be applied to..
How a character save in 2 bytes in Java?
Exception doubt
composite-id hibernate problem
More...