VHD Java库 [英] VHD Java library

查看:548
本文介绍了VHD Java库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个可以打开.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 be cross-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 libguestfs 是一个C库,但有一个Java绑定

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的一部分。这可以从 libguestfs 下载页面获得。选择最新版本,目前 1.18.8

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库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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