Friday, April 30, 2021

Re: GWT tutorial does not compile

Don't you have to define the source path in the gwt.xml?

Ie: If your gwt.xml file is in com.google.gwt.sample.stockwatcher

Then because your entry point is com.google.gwt.sample.stockwatcher.client.StockWatcher, you'd add:
<source path='client' />

To tell GWT it needs to look in  com.google.gwt.sample.stockwatcher.client and below.

On Friday, 30 April 2021 at 4:48:30 pm UTC+10 lofid...@gmail.com wrote:
Hmmm that looks fine from here... because the module com.google.gwt.user.User (User.gwt.xml) inherits com.google.gwt.core.Core (Core.gwt.xml) so you don't need to directly inherits the Core module.

Here you can see that User module already inherits everything:

Maybe your project cannot find the the Core module file: Core.gwt.xml.

The problem is I don't know what the Eclipse GWT Plugin is doing today... how the dependencies are defined...

I your case I would just download this zip file from above: https://github.com/lofidewanto/gwt-boot-sample-basic/archive/refs/heads/main.zip (simple "Hello World" example: https://github.com/lofidewanto/gwt-boot-sample-basic) and then copy & paste
  • all the Java classes
  • the HTML host file: index.html
  • the GWT Module file: Xxxx.gwt.xml
into the project...

I think we need to rework all the examples from GWT project site not to use the GWT plugin for Eclipse anymore... instead just using Maven.
likejudo schrieb am Freitag, 30. April 2021 um 02:24:09 UTC+2:
but I have not modified the tutorial file at all so it should have worked.

Thanks for the file. I took the gwt.xml from your link

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6.2//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd">
<module rename-to='stockwatcher'>
  <!-- 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'/>     -->
  <!-- Specify the app entry point class.                         -->
  <entry-point class='com.google.gwt.sample.stockwatcher.client.StockWatcher'/>
</module>

I did Run As and picked Dev Mode:

Turning off precompile in incremental mode.
Super Dev Mode starting up
   workDir: C:\Users\Anil\AppData\Local\Temp\gwt-codeserver-9512230354285428339.tmp
2021-04-29 19:15:08.287:INFO::main: Logging initialized @691ms
   Loading Java files in com.google.gwt.sample.stockwatcher.StockWatcher.
   [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')


What am I missing?

On Thursday, April 29, 2021 at 4:14:19 PM UTC-5 lofid...@gmail.com wrote:
You need to take a look at the Module file in the project: Xxx.gwt.xml. Example for StockWatcher demo app: https://github.com/manolo/gwt-stockwatcher/blob/master/src/com/google/gwt/sample/stockwatcher/StockWatcher.gwt.xml


Hope this helps
likejudo schrieb am Donnerstag, 29. April 2021 um 22:48:51 UTC+2:
Thanks for the links.
I found from other posts that DOCTYPE was incorrectly set. 'www' is required and that fixed it. 
However, I am stuck here now:
   [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')

Have you seen this before?

On Thursday, April 29, 2021 at 3:39:14 PM UTC-5 aka...@gmail.com wrote:
Try following this tutorial https://dev.to/ibaca/modern-gwt-first-steps-509k

On Thursday, April 29, 2021 at 11:36:02 PM UTC+3 lofid...@gmail.com wrote:
Hi,

today I won't use the GWT plugin for Eclipse anymore... 

I would just use Eclipse / IntelliJ / Visual Studio Code and Maven.

Some introductions:
Hope this helps.
likejudo schrieb am Donnerstag, 29. April 2021 um 19:57:18 UTC+2:
I am learning GWT and was trying to run this tutorial http://www.gwtproject.org/doc/latest/tutorial/index.html

Using the Eclipse GWT plugin 3.0 on Windows 10 and JDK 11

I get this error on the first line Error: There is '1' error in 'gwt-module.dtd'.

I installed the plugin from the marketplace.
I see this error in other tutorials too.

Any suggestions appreciated.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/06f138ad-5519-4ece-a769-f4e62737d21fn%40googlegroups.com.

No comments:

Post a Comment