无法在Eclipse中运行/调试Java应用程序(JavaTimeZone问题) [英] Cannot run/debug Java applications in Eclipse (JavaTimeZone issue)

查看:204
本文介绍了无法在Eclipse中运行/调试Java应用程序(JavaTimeZone问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在MacBook上开始使用Eclipse / Java / Scala。安装的JDK是1.5。 Scala的SDT插件需要1.6,它包含在操作系统更新中,但是我也手动安装了一个从Apple更新到1.6的软件包。
问题是我不能从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屋!

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