<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Alexandre,<br>
<br>
building on top of Klaus answer:<br>
If you want to manage VirtualBox on Windows, you currently need to
use the Web Services binding.<br>
<br>
For the purpose of my Hyperbox project, I've put together a piece of
code you can easily work with to manage the Web Services server,
start it for your application and stop it afterwards, removing any
pre-run configuration/commands:<br>
<a class="moz-txt-link-freetext" href="https://github.com/hyperbox/vbox-common/blob/master/src/core/src/io/kamax/vbox/_VBoxWebSrv.java">https://github.com/hyperbox/vbox-common/blob/master/src/core/src/io/kamax/vbox/_VBoxWebSrv.java</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/hyperbox/vbox-common/blob/master/src/server/core/src/io/kamax/vbox/VBoxWebSrv.java">https://github.com/hyperbox/vbox-common/blob/master/src/server/core/src/io/kamax/vbox/VBoxWebSrv.java</a><br>
<br>
It uses the <a href="https://github.com/zeroturnaround/zt-exec">zeroturnaround
exec library</a> for process management, so you'll need that too.<br>
<br>
Other requirements that you can swap for your own management code
(logger, exception):<br>
<a class="moz-txt-link-freetext" href="https://github.com/hyperbox/api/blob/master/src/core/src/io/kamax/hbox/exception/HyperboxException.java">https://github.com/hyperbox/api/blob/master/src/core/src/io/kamax/hbox/exception/HyperboxException.java</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/hyperbox/api/blob/master/src/tools/src/io/kamax/net/NetUtil.java">https://github.com/hyperbox/api/blob/master/src/tools/src/io/kamax/net/NetUtil.java</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/hyperbox/api/blob/master/src/tools/src/io/kamax/tool/logging/Logger.java">https://github.com/hyperbox/api/blob/master/src/tools/src/io/kamax/tool/logging/Logger.java</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/hyperbox/api/blob/master/src/tools/src/io/kamax/tool/logging/LogLevel.java">https://github.com/hyperbox/api/blob/master/src/tools/src/io/kamax/tool/logging/LogLevel.java</a><br>
<br>
Hope it will be useful to you!<br>
<br>
Max<br>
<br>
<div class="moz-cite-prefix">On 07/04/16 16:13, Klaus Espenlaub
wrote:<br>
</div>
<blockquote cite="mid:57066AF9.3020001@oracle.com" type="cite">Hi
Alexandre,
<br>
<br>
On 07.04.2016 12:44, Alexandre wrote:
<br>
<blockquote type="cite">Hi,
<br>
I am presently developing a project which uses VirtualBox
5.0.16. I am
<br>
having problems with building the package in Windows 7 using
Visual Studio
<br>
2015 (specially having many linking errors), so bypassing it I
have
<br>
installed the VirtualBox using the Installer, but the current
SDK does not
<br>
contain the vboxjmscom.jar (version 5.0) file, which is
necessary for me to
<br>
program in Java.
<br>
</blockquote>
<br>
Not clear to me what package you want to build. VirtualBox itself
can't be built using VS2015, but there are people out there who
have no problem implementing VirtualBox API client code and
building their applications using VS2015.
<br>
<br>
<blockquote type="cite">Since I am not able to compile the whole
project [giving the command "kmk
<br>
VBOX_WITH_JMSCOM=1"] I would like to ask anyone's help to
graciously send me
<br>
the file vboxjmscom.jar; for I find no other way I could get it
(I've
<br>
searched everywhere! But I find only for version 4.3, and I need
version
<br>
5.0.16...).
<br>
</blockquote>
<br>
vboxjmscom.jar is pretty much unusable. It can't talk to a large
portion of the VirtualBox API due to significant logical flaws in
the automatically generated code which bridges the gap to the raw
win32com support. That's why we no longer include it in the SDK.
<br>
<br>
We do want to address these issues, but haven't found time so far.
<br>
<br>
Klaus
<br>
<br>
<blockquote type="cite">Hope I have posted this in the proper
place.
<br>
Thank you!
<br>
</blockquote>
_______________________________________________
<br>
vbox-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a>
<br>
</blockquote>
<br>
</body>
</html>