Need to read data from Property file placed in Side META-INF folder but got error
i an getting error when trying to read property file
i wrote below code
Properties props = new Properties();
InputStream is =
this.getClass().getResourceAsStream("topicalert.properties");
props.load(is);
when i am trying to compile code i will give me below code :
[ERROR] Errors in 'file:/E:/Projects/Infodesk/TopicAlert-GWT/src/
gwt/com/idsk/topicalert/client/TopicAlertMain.java'
[ERROR] Line 177: No source code is available for type
java.util.Properties; did you forget to inherit a required module?
[ERROR] Line 190: No source code is available for type
java.io.InputStream; did you forget to inherit a required module?
[ERROR] Line 190: The method getResourceAsStream(String) is
undefined for the type Class<capture#1-of ? extends TopicAlertMain>
[ERROR] Errors in 'file:/E:/Projects/Infodesk/TopicAlert-GWT/src/
gwt/com/idsk/topicalert/client/TopicAlertMain.java'
[ERROR] Line 190: The method getResourceAsStream(String) is
undefined for the type Class<capture#1-of ? extends TopicAlertMain>
[ERROR] Cannot proceed due to previous errors
after this error I put
<inherits name='java.util.Properties'/>
<inherits name='java.io.InputStream'/> in gwt.xml file then i got
below error
Loading inherited module 'java.util.Properties'
[ERROR] Unable to find 'java/util/Properties.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?
[ERROR] Line 6: Unexpected exception while processing element
'inherits'
pl. help me to solve this problem how to read and process data from
property file
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home