无法在Eclipse中运行/调试Java应用程序(JavaTimeZone问题) [英] Cannot run/debug Java applications in Eclipse (JavaTimeZone issue)
问题描述
问题是我不能从Eclipse运行任何东西。我总是收到以下错误:
在启动TestFooBasicTest期间发生内部错误。
无法初始化类com.ibm.icu.impl.JavaTimeZone
我也尝试使用旧的
$ b
我有同样的问题,试图运行一个scala程序与Ubuntu 10.4和股票eclipse(Galileo 3.5.2)和java(java-6-openJdk)和scala pluging从scala站点下载,当然。我修改它通过手动更改/usr/lib/eclipse/plugins/com.ibm.icu_4.0.1.v20100125.jar建议在这个线程(btw我发现Emacs可以更改一个jar文件的位置:nice):
http: //www.eclipse.org/forums/index.php?t=msg&goto=488654
这是由ubuntu openjdk包破坏的符号链接引起的用于TimeZone配置。论坛线程的最佳解决方案是,
重新安装tzdata-java是我的解决方案:
< blockquote>
sudo apt-get --reinstall install tzdata-java
I'm trying to get started with Eclipse/Java/Scala on a MacBook. The installed JDK was 1.5. The SDT plugin for Scala requires 1.6 which was included in an OS update, but I also manually installed a package from Apple to update 1.6. The problem is that I cannot run anything from Eclipse. I always get the following error:
An internal error occurred during: "Launching TestFooBasicTest". Could not initialize class com.ibm.icu.impl.JavaTimeZone
I also tried to use the old 1.5 version, but to no avail.
What is going wrong here?
解决方案I had the same problem trying to run a scala program with Ubuntu 10.4 and stock eclipse (Galileo 3.5.2) and java (java-6-openJdk ) - and the scala pluging downloaded from scala site, of course. I fixed it by manually changing /usr/lib/eclipse/plugins/com.ibm.icu_4.0.1.v20100125.jar as suggested in this thread (btw I discovered that Emacs can change a jar file in place: nice):
http://www.eclipse.org/forums/index.php?t=msg&goto=488654
It's caused by ubuntu openjdk package with broken symbol links for TimeZone configuration. The best solution from forum thread is,
Reinstalling tzdata-java was the fix for me:
sudo apt-get --reinstall install tzdata-java
这篇关于无法在Eclipse中运行/调试Java应用程序(JavaTimeZone问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!