tags:

views:

253

answers:

2

Hi all, 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.font".

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

Thanks for any help.

A: 

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

gang.cui
A: 

Your eclipse must be using a JDK that is not from sun. Try the following. Update /etc/eclipse.ini with following

-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

All the best

nunny