A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
error with Url with java
Joined: Mar 10, 2011
Mar 10, 2011 08:28:03
Eclipse gives me these error with this code in
............ String url="http://www.cadenaser.com/rssaudio/larguero.html"; //URL url2=new URL("http://www.cadenaser.com/rssaudio/larguero.html"); URL url2=new URL(url); ....
Exception in thread "main"
: Unresolved compilation problems:
Unhandled exception type
Could you help me please?
Many thanks and sorry for my english
Joined: Aug 05, 2005
Mar 10, 2011 09:26:42
The definition of the URL class constructor says that it might throw a
. This is a checked exception, so your code needs to either catch or rethrow it. See the
java exceptions tutorial
for more details.
Joined: Oct 13, 2005
Mar 10, 2011 10:32:48
. . . and welcome to the Ranch
I agree. Here's the link:
subject: error with Url with java
URLConnection 422 Http Error response
What is the Prototype for Main method in java
Sockets vs URL Based classes
parent location of a url
Passing an image from CGI
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014