您的位置:首页 > 编程语言 > Java开发

Genymotion在eclipse启动时无法找到reg.exe

2017-03-04 11:41 260 查看
Genymotion在Eclipse里启动不了

Loading Genymotion library

Genymotion directory: D:\Genymotion

Trying to initialize engine

Exception (VBoxManage): java.io.IOException: Cannot run program "D:\SoftwareInstall\Genymotion\/reg": CreateProcess error=2, 系统找不到指定的文件。

Initialize Engine: failed

看提示信息可以大概看出原因,Genymotion安装目录下缺少了reg.exe这个文件。

这个reg.exe文件其实就是用来标识VirtualBox的安装目录的。

 解决方法就是:

自己用C语言写一个简单的程序,reg.c

#include<stdio.h>

int main(void)

{

printf("D:\\Oracle\\VirtualBox");//输出的内容是你自己电脑中VirtualBox的安装路径

return 0;

}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: