TitieGarou
Messages postés2Date d'inscriptionmardi 21 janvier 2003StatutMembreDernière intervention28 mars 2005
-
27 mars 2005 à 18:43
TitieGarou
Messages postés2Date d'inscriptionmardi 21 janvier 2003StatutMembreDernière intervention28 mars 2005
-
28 mars 2005 à 13:53
Bonjour,
J ai developpé un FTP client serveur.
J ai une erreur que je n arrive pas a resoudre :
JFrame.java [171:1] unreported exception java.net.UnknownHostException; must be caught or declared to be thrown
InetAddress addr = InetAddress.getByName("localhost");
JFrame.java [172:1] unreported exception java.io.IOException; must be caught or declared to be thrown
Socket soc = new Socket(addr, 5217);
Je pensais qu il fallait juste mettre ds la déclaration du main "throws Exception" mais ca ne change rien.
Que faire
Merci par avance,
Titie
A voir également:
Unreported exception must be caught or declared to be thrown
The caught compilation 13 - Meilleures réponses
Error: unreported exception ioexception; must be caught or declared to be thrown - Meilleures réponses