(filename.java.i, filename.jar.i) 扩展名是什么意思
我有名为 xxx.java.i
、xxx.java.d
、xxx.jar.i
的文件。我知道这些文件与 Java 有某种关系。这个扩展是什么意思以及它的用途是什么?它与 .class
扩展名的类型相同吗?
I have files named xxx.java.i
,xxx.java.d
,xxx.jar.i
. I know that these file are somehow related to Java. What does this extension mean and for what is it used? Is it same type as the .class
extension?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该查看您的构建系统以获取更多信息。这些可能是被转换并重命名为“.java”的中间文件。例如,我见过各种使用“.i”后缀表示“输入”的构建系统,并执行各种形式的变量替换(例如,将“{VERSION_NUMBER}”之类的内容更改为正在编译的库的版本号)。
You should look at your build system for more information. It is possible that these are intermediate files that get transformed and renamed to ".java". For example, I've seen various build systems that use the ".i" suffix to mean "input", and perform various forms of variable substitution (e.g. changing something like "{VERSION_NUMBER}" to the version number of the library being compiled).
我认为它们是由某人为了达到自己的目的而创建的,除非我们询问作者或看到内容,否则我们不会知道其目的是什么。
如果你看到乱码,它可能是java字节码,你可以使用一些反编译器来查看代码(参见:如何“反编译”Java 类文件?)。
I think they are created by someone to serve his own purpose and unless we ask the author or see the content we won't know what it the purpose is.
If you see garbled characters, it's probably java bytecode and you can use some decompiler to see the code (see: How do I "decompile" Java class files?).