开发者

class java.awt.Font error - Android

开发者 https://www.devze.com 2022-12-21 02:36 出处:网络
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\".

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

精彩评论

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