Hello,
I have a little problem, I wanted to create a GWT application using
Translating API: http://code.google.com/p/google-api-translate-java/
and when I click Run as Web Application (Eclipse with GWT) I get these
error:
[TRACE] Loading inherited module 'com.google'
[ERROR] Unable to find 'com/google/api/translate/Language.gwt.xml' on
your classpath; could be a typo, or maybe you forgot to include a
classpath entry for source?
[ERROR] Line 15: Unexpected exception while processing element
'inherits'
[ERROR] Failure while parsing XML

I added to APTranslator.gwt.xml this line:
<inherits name='com.google.api.translate.Language'/>
it looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.1//
EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro-
source/core/src/gwt-module.dtd">
<module rename-to='aptranslator'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>

  <!-- Inherit the default GWT style sheet.  You can change       -->
  <!-- the theme of your GWT application by uncommenting          -->
  <!-- any one of the following lines.                            -->
  <inherits name='com.google.gwt.user.theme.standard.Standard'/>
  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

  <!-- Other module inherits                                      -->
  <inherits name='com.google.api.translate.Language'/>
  <!-- Specify the app entry point class.                         -->
  <entry-point class='ap.translator.client.APTranslator'/>
</module>

I clicked right-mouse on Project, selected Properties - Java Build
Path - Libraries
and there I added JAR: google-api-translate-java-0.91.jar which is in
lib/ folder in project folder.

Do you have any idea, where can be a problem? I tried to add the JAR
many times in different ways, but nothing helped me :)

Thanks

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to