简体   繁体   English

Eclipse无法找到GWT活页夹的CSS文件

[英]Eclipse unable to find the css file for GWT binder

I am using UI binder for my GWT UI file and I am providing the relative path to load the css file which present in other directory but eclipse is showing the file is missing. 我正在为我的GWT UI文件使用UI绑定器,并提供了加载其他目录中存在的css文件的相对路径,但是eclipse显示该文件丢失。 Could you please help me how to fix that issue. 您能帮我解决这个问题吗?

<ui:style src="../../../../public/css/sample.css"/>

Location of Ui file project/src/main/java/com/sample/gwt/client/a/b/c/d/view/e/f.ui.xml Ui文件project/src/main/java/com/sample/gwt/client/a/b/c/d/view/e/f.ui.xml位置project/src/main/java/com/sample/gwt/client/a/b/c/d/view/e/f.ui.xml

Location of css file project/src/main/java/com/sample/gwt/client/a/b/public/css/sample.css CSS文件project/src/main/java/com/sample/gwt/client/a/b/public/css/sample.css

I can see the css file at that location but eclipse is unable to find the file. 我可以在该位置看到css文件,但是eclipse无法找到该文件。

We often have caching problems with eclipse. 我们经常会在日食方面遇到缓存问题。 The usual workaround is: 通常的解决方法是:

Double-click on the generated .java file to open it and press F5 if the file is out of sync. 双击生成的.java文件将其打开,如果文件不同步,请按F5键。

If it doesn't work clear the gwtUnitCache folder. 如果不起作用,请清除gwtUnitCache文件夹。

And if it doesn't work clear the rest of the target folder. 如果不起作用,请清除目标文件夹的其余部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM