Java异常:未知协议:udp [英] Java Exception: unknown protocol: udp
本文介绍了Java异常:未知协议:udp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行基本的Java程序,作为对应用程序进行逆向工程的一部分。
我正在获取
I am trying to run a basic java program as part of reverse engineering an application. I am getting
java.net.MalformedURLException:未知协议:udp
java.net.MalformedURLException: unknown protocol: udp
在运行以下代码时出现异常
exception while running following code
public static void main(String[] args) throws MalformedURLException {
URL url = new URL("udp://xxx.xxxx.com:1234/");
}
谢谢。
推荐答案
这里的问题实际上是udp不是协议;就像tcp这样的交通工具您也不能使用 tcp:// host:port /
URL。
the problem here is really that udp is not a protocol; it's a transport, like tcp. You can't use a tcp://host:port/
URL either.
这篇关于Java异常:未知协议:udp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文