开发者

class java.awt.Font error - Android

When I try to edit project/res/main.xml using android layout editor in eclipse I get the error "Could not initialize class java.awt.fo开发者_StackOverflow中文版nt".

I don't know, how to get rid of this.

Thanks for any help.


I guess you just installed jre, so the java.awt was not found. You should install jdk.


Are you using ubuntu?

Because I do and I got same problem, but I tried to install openjdk-6-jre from the repository and this problem is solved.

Hope this work for you


Your eclipse must be using a JDK that is not from sun. Try the following.

Update /etc/eclipse.ini with

-vm
/usr/lib/jvm/java-6-sun-1.6.0.22/bin/ 

Replace the jvm path with where your sun jvm is installed. Add this line just after a line that looks like below

256m
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜