Bonjour,
suite à un problème de téléchargement de dépendances avec Maven, j'ai découvert un problème au niveau java sur ma machine. Le programme suivant:
Lance l'exception suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 import java.net.URL; import java.net.URLConnection; import java.io.IOException; public class NetworkTest { public static void main(String[] args) throws IOException { URL u = new URL("http://152.46.7.65"); URLConnection uc = u.openConnection(); uc.connect(); } }
Exception in thread "main" java.net.NoRouteToHostException: Network is unreachable
Alors que l'hote est bien joignable:
64 bytes from 152.46.7.65: icmp_seq=1 ttl=49 time=141 ms
(Le mtr affiche une route et tout).
Quelqu'un aurait une idée sur l'origine du problème qui empêche toute utilisation de Maven sur ma machine*?
Merci d'avance
Partager