I am trying to run a basic java program as part of reverse engineering an application. I am getting
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/");
}
Thanks in Advance.
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.
Cause
You are using a version of the Java Developer Kit (JDK) that was released prior to JDK 1.4.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.