E / DDMS抛出:IllegalArgumentException安装的“坏版”有32位和64位Java JRE [英] E/ddms IllegalArgumentException 'Bad version' with both 32 and 64 bit Java JRE installed

查看:133
本文介绍了E / DDMS抛出:IllegalArgumentException安装的“坏版”有32位和64位Java JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。工作在Windows 7专业版64位系统,具有64位Java JDK(并通过JDK的JRE)安装和使用Eclipse 3.5.2和最新的Andr​​oid SDK(第七版)。一切工作正常。

Hello. Working on a Windows 7 Pro 64-bit system, that has the 64-bit Java JDK (and via the JDK the JRE) installed, and using Eclipse 3.5.2 and the latest Android SDK (rev 7). Everything works fine.

如果我再在同一台机器上安装32位Java JRE(这样我就可以运行Java小应用程序在Chrome / Firefox的),并尝试启动仿真器(无论从命令提示符下或在Eclipse)我得到以下异常...

If I then install the 32-bit Java JRE on the same machine (so that I can run Java applets in Chrome/Firefox), and try to start up the emulator (from either the command prompt or from within Eclipse), I get the following exception...

E/ddms: shutting down due to uncaught exception
E/ddms: java.lang.IllegalArgumentException: Bad version: standalone
     at com.android.sdkstats.SdkStatsService.normalizeVersion(SdkStatsService.java:467)
     at com.android.sdkstats.SdkStatsService.doPing(SdkStatsService.java:195)
     at com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java:130)
     ...

什么特别情况发生,当我尝试启动模拟器,是我得到一个Windows命令提示符窗口中的Java -version,迅速消失的标题,然后另一个Windows命令提示符窗口中的C的标题:\ WINDOWS \ SYSTEM32 \ cmd.exe的,也很快消失,最后第三Windows命令提示符窗口,在它上面提到的异常信息,并与...标题

What specifically happens, when I try and launch the emulator, is I get a Windows command prompt window with a title of "Java -version", which quickly goes away, then another Windows command prompt window with a title of "C:\Windows\system32\cmd.exe", which also goes away quickly, and then finally a third Windows command prompt window with the above-mentioned exception information in it, and with a title of ...

的Java -Djava.ext.dirs =的lib \ 86; LIB \ -Dcom.android.ddms.binddir =罐子的lib \ ddms.jar平模拟器standal ......
(该'...'是因为窗口是不够宽,以显示标题的其余部分)

"java -Djava.ext.dirs=lib\x86;lib\ -Dcom.android.ddms.binddir= -jar lib\ddms.jar ping emulator standal..."
(the '...' is because the window was not wide enough to show the rest of the title)

...这也迅速消失。所有这三个窗口的显示/消失在规定时间内1-2秒跨度。

... which also quickly goes away. All three windows display/disappear within a 1-2 second span of time.

卸载/从我的系统中删除32位Java JRE使问题消失,重新引入了Java的32位JRE导致它回来。

Uninstalling/removing the 32-bit Java JRE from my system makes the problem go away, reintroducing the Java 32-bit JRE causes it to come back.

现在我只是没有安装32位Java JRE,如果我需要访问一个网页Java小程序,我用的是64位版本的IE浏览器(其中Java的64位工程),但我希望能有我的Andr​​oid / Eclipse的64位开发环境,我需要运行Java JRE的32位,所以我可以用小程序之间的和谐在Chrome / Firefox浏览器。

For now I'm just not having the 32-bit Java JRE installed, and if I need to access a web page with a Java applet, I use the 64-bit version of I.E. (which Java 64-bit works in), but I'd like to be able to have harmony between my Android/Eclipse 64-bit development environment, and my need to run the 32-bit of the Java JRE so I can use applets in Chrome/Firefox.

任何意见/信息将是AP preciated。预先感谢您的时间和精力。

Any advice/info would be appreciated. Thanks in advance for your time and efforts.

P.S。下面是三个Windows的复合sc​​reenpic吩咐我前面介绍的提示窗口:的http:// img409 .imageshack.us / img409 / 3182 / tempb.png

P.S. Here's a composite screenpic of the three Windows command prompt windows that I described earlier: http://img409.imageshack.us/img409/3182/tempb.png

推荐答案

我有这个确切的问题。就我而言,我运行Windows 7 32位。我找到了解决办法:

I had this exactly problem. In my case, I am running Windows 7 32bits. I found solution:

修改ddms.bat在C:\ Android的SDK-WINDOWS \ Tools文件夹。从最后一行

Modify ddms.bat in C:\android-sdk-windows\tools folder. The last line from

通话%java_exe%%java_debug%-Djava.ext.dirs =%javaextdirs%-Dcom.android.ddms.bindir =罐子%jarpath %% *

call %java_exe% %java_debug% -Djava.ext.dirs=%javaextdirs% -Dcom.android.ddms.bindir= -jar %jarpath% %*

通话%java_exe%%java_debug%-Djava.ext.dirs =%javaextdirs%-Dcom.android.ddms.bindir =罐子%jarpath%平模拟器0012

call %java_exe% %java_debug% -Djava.ext.dirs=%javaextdirs% -Dcom.android.ddms.bindir= -jar %jarpath% ping emulator 0012

这对我的作品。

参考: http://ichavo.ru/voprosy/ 15年10月11日/抛出:IllegalArgumentException - 坏版本独立

这篇关于E / DDMS抛出:IllegalArgumentException安装的“坏版”有32位和64位Java JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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