gpt4 book ai didi

java - 如何让 Windows 使用我的程序自动查看文件,以及如何让程序读取该文件?

转载 作者:行者123 更新时间:2023-12-01 15:15:13 27 4
gpt4 key购买 nike

我希望它就像我们“打开方式”然后选择记事本一样。这样,当我“打开”一个文件时,列表中就会有我的程序。如何将文件类型与我的程序关联?

如何让程序处理该文件?

最佳答案

部署应用程序。使用Java Web Start .

Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.

JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..

这个demo. of the file service使用 JWS 进行部署(在 OS X、*nix 和 Windows 上)并声明对 .zzz 文件类型感兴趣。

关于java - 如何让 Windows 使用我的程序自动查看文件,以及如何让程序读取该文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11714904/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com