在Windows上将自定义文件扩展名与我的Java程序相关联 [英] associate a custom file extension with my java program on windows

查看:47
本文介绍了在Windows上将自定义文件扩展名与我的Java程序相关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以将自定义文件扩展名与Windows上的Java程序相关联?我有installAnywhere来创建安装程序.但是我不确定如果可能的话该怎么办.window上的每个安装程序都可以执行此操作,但是如果使用Java,该怎么办.我想这将需要安装程序修改注册表...

is there a way to associate a custom file extension with my java program on windows? I have installAnywhere to create an installer. But I'm not sure how this can be done if it's possible. Every installer on window does this, but what if it's in Java. I imagine it would require registry modification by the installer...

推荐答案

看看 Launch4j .它允许您将Java应用程序包装到本机Windows .exe文件中,与自定义文件扩展名关联起来应该很简单.

Take a look at Launch4j. It allows you to wrap your java application into a native Windows .exe file, with which it should be trivial to associate a custom file extension.

上次我与InstallAnywhere处理是在ZeroG制作它的时候回来的,所以我不太记得它是如何完成的.我现在使用的是 Nullsoft安装系统,该系统具有便捷的

Last time I dealt with InstallAnywhere was back when it was made by ZeroG, so I don't quite remember how it's done there. I'm using Nullsoft Install System now which has a convenient macro to register file extensions, I'm sure InstallAnywhere has a similar facility.

这篇关于在Windows上将自定义文件扩展名与我的Java程序相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆