Syntax error, insert "enum Identifier" to complete EnumHeaderName when using ClientBundle

4,886 views
Skip to first unread message

David E.

unread,
Mar 17, 2011, 1:10:53 PM3/17/11
to Google Web Toolkit
I'm trying to use ClientBundle and I'm getting the following two
errors in Eclipse with the following class.

What am I doing wrong?

Thanks,
David


Syntax error, insert "enum Identifier" to complete EnumHeaderName
ImageResources.java FormsUI_v2/src/com/dve/client/imagebundle line 9
Java Problem

Syntax error, insert "EnumBody" to complete EnumDeclaration
ImageResources.java FormsUI_v2/src/com/dve/client/imagebundle line 9
Java Problem

************************************************************************************************************************

import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;


interface ImageResources extends ClientBundle {

@Source("images/GIF/tree/blank.gif");
ImageResource blank();

}

David E.

unread,
Mar 17, 2011, 1:15:50 PM3/17/11
to Google Web Toolkit
Got it,

1. delete the semicolon at the end of @Source
2. make sure image is on classpath

Thanks,
Reply all
Reply to author
Forward
0 new messages