问题描述
我正在寻找一个可以打开.vhd文件的Java库。我想创建一个可以在其中导航的程序。我也希望它是跨平台的
。我现在用谷歌搜索了一段时间,但一无所获。我只找到一个旧未解决的问题。
任何人都可以帮助我吗?
I'm looking for a Java library that can open .vhd files. I wants to create a program that can navigate inside it. I also want it to becross-platform. I have googled for an library a while now but found nothing. I did only find an old unanswerd question here on stack overflow.Can anyone help me?
推荐答案
考虑。 libguestfs
是一个C库,但。
Consider libguestfs
. libguestfs
is a C library, but it has a Java binding.
它,在Linux和Mac OS X上工作,并且[s] ome virt工具已移植到Windows。检查您需要的功能是否适用于Windows。
It claims to be cross-platform, working on Linux and Mac OS X, and "[s]ome virt tools have been ported to Windows". Check to see whether the features you need work on Windows.
libguestfs
支持VHD图像(下格式名称 vpc
)。
libguestfs
does support VHD images (under the format name vpc
).
Java绑定包含 com.redhat.et.libguestfs
包,它们是源代码分发tarball的一部分。这可以从获得。选择最新版本,目前。
The Java bindings, which contain the com.redhat.et.libguestfs
package, are available as part of the source distribution tarball. This can be obtained from the libguestfs
download page; select the latest version, currently 1.18.8.
或者,可以从Maven存储库中获得预编译的JAR。
Alternatively, a pre-compiled JAR might be available from the Maven repository.
无论哪种方式,在Windows上你都可以可能必须自己编译本机 libguestfs
库。
Either way, on Windows you likely have to compile the native libguestfs
library yourself.
这篇关于VHD Java库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!