如何在java中创建新的拨号连接?

发布于 2024-09-28 14:58:19 字数 88 浏览 0 评论 0原文

在我的应用程序中,用户必须在 Windows 中创建一个新的拨号网络连接,但我想以编程方式执行此操作。java 中是否有任何 API 可以帮助我创建新的网络连接。

In my application user has to create a new dial up network connection in windows but i want to do this programmatically.Is there any API present in java that can help me for creating new network connection.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

但可醉心 2024-10-05 14:58:19

无法使用纯 Java 创建 Windows 拨号网络连接。不过,您可能会考虑使用 Java 调用内置的 Windows 命令行程序。将此视为起点:http://support.microsoft.com/kb/555935

There is no way to create a Windows dial-up networking connection using pure Java. You might consider using Java to call built-in Windows command line programs though. See this as a starting point: http://support.microsoft.com/kb/555935

甜`诱少女 2024-10-05 14:58:19

您需要网络连接做什么?如果您想与应用程序的另一个客户端或用 Java 编写的服务器通信,可以使用 Socket 类。

What do you need the network connection for? If you want to talk to another client of your application or a server written in Java, you can use the Socket class.

薯片软お妹 2024-10-05 14:58:19

Sun 曾经有一个电话/电信 API 可能会有所帮助,但我认为它已经很多年没有开发了......因为大约在同一时间拨号就消失了。 :-)

您最好的选择可能是寻找一个可以完成您想要的操作的本机 API,并围绕它编写一个 JNI 包装器。或者,如果你幸运的话,谷歌搜索可能会找到已经这样做过的人。

祝你好运。

Sun used to have a phone/telecom API that might help, but I think it has not been developed on in years... since probably about the same time dial-up died. :-)

Your best option may be to look for a native API that does what you want and write a JNI wrapper around it. Alternately, if you are lucky some google searching might come up with someone who has already done that.

Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文