"Eclipse" trouble message error appear constantly
I get this message all the time on my error log:
Could not create the view: Could not initialize class com.ibm.icu.impl.JavaTimeZone.
Th开发者_运维问答is situation its bad: each time when I try to open a class I get this message.
What should I do to solve this problem?
see this buddy:What does "Could not initialize class com.ibm.icu.impl.JavaTimeZone" mean?
It could be not related to android, but to your Eclipse version and current platform.
In case it is relevant, the blog post "Could not initialize class com.ibm.icu.impl.JavaTimeZone Error
" (by Derek Helbert) could be helpful.
(But only for Eclipse 3.6 on MacOs)
If you are having a serious pain trying to run Eclipse Helios in Mac OS x 10.5.8 and keep getting errors such as the following:
java.lang.NoClassDefFoundError
--or--
An internal error occurred during: "Could not initialize class com.ibm.icu.impl.JavaTimeZone error".
Here is an easy solution:
Edit
eclipse.ini
with your favorite text editor and add a line at the end "-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU
".
It's insideEclipse.app/Contents/MacOS/eclipse.ini
.
Another solution is the following:
- Decompress the
com.ibm.icu_4.0.1.v20090822.jar
file in theeclipse/plugins
folder to any directory you like.
If you cannot find the exact version, just decompress theIBM ICU JAR
that's shipped with your version of Eclipse.- In that directory, open the file
com/ibm/icu/ICUConfig.properties
- Replace
com.ibm.icu.util.TimeZone.DefaultTimeZoneType = JDK
with
com.ibm.icu.util.TimeZone.DefaultTimeZoneType = ICU
- Recompress the
com.ibm.icu_4.0.1.v20090822.jar
file in theeclipse/plugins
folder with the modified fileHowever, it has been pointed out that editing the jar makes it unsigned.
Ran into the same problem with Ubuntu 12.04 and fixed it with:
apt-get --reinstall install tzdata-java
精彩评论