Hi Alexandre,

building on top of Klaus answer:
If you want to manage VirtualBox on Windows, you currently need to use the Web Services binding.

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:
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/server/core/src/io/kamax/vbox/VBoxWebSrv.java

It uses the zeroturnaround exec library <https://github.com/zeroturnaround/zt-exec> for process management, so you'll need that too.

Other requirements that you can swap for your own management code (logger, exception):
https://github.com/hyperbox/api/blob/master/src/core/src/io/kamax/hbox/exception/HyperboxException.java
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/tool/logging/Logger.java
https://github.com/hyperbox/api/blob/master/src/tools/src/io/kamax/tool/logging/LogLevel.java

Hope it will be useful to you!

Max

On 07/04/16 16:13, Klaus Espenlaub wrote:
Hi Alexandre,

On 07.04.2016 12:44, Alexandre wrote:
Hi,
I am presently developing a project which uses VirtualBox 5.0.16. I am
having problems with building the package in Windows 7 using Visual Studio
2015 (specially having many linking errors), so bypassing it I have
installed the VirtualBox using the Installer, but the current SDK does not contain the vboxjmscom.jar (version 5.0) file, which is necessary for me to
program in Java.

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.

Since I am not able to compile the whole project [giving the command "kmk VBOX_WITH_JMSCOM=1"] I would like to ask anyone's help to graciously send me
the file vboxjmscom.jar; for I find no other way I could get it (I've
searched everywhere! But I find only for version 4.3, and I need version
5.0.16...).

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.

We do want to address these issues, but haven't found time so far.

Klaus

Hope I have posted this in the proper place.
Thank you!
_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to