Cannot compile from command line

229 views
Skip to first unread message

kratzbaumkordel

unread,
Jul 16, 2012, 3:33:04 PM7/16/12
to google-we...@googlegroups.com
Hi, my problem is that I'd like to compile my GWT project in a batch file which doesn't work. The same project compiles in Eclipse with GWT plugin without any problem (so the problem should't be about GWT client package issues). The compilation fails with message:

Errors in 'file:path/to/entry/point/class/EntryPoint.java'
Line 1: The declared package "main.package.client" does not match the expected package "client"


Then many errors (probably follow up errors) and finally:

   Finding entry point classes
      [ERROR] Unable to find type 'main.package.client.EntryPoint'
         [ERROR] Hint: Previous compiler errors may have made this type unavailable
         [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly


I've spent hours trying to solve this. In the batch file the classpath contains the path to both my module xml and the source folder (and of course any other libraries used).

Any help would be appreciated!
Thanks!

Joseph Lust

unread,
Jul 17, 2012, 9:22:39 PM7/17/12
to google-we...@googlegroups.com
Can you supply the commandline argument you're using to launch the GWT compile from in the batch file?

Just a wild guess, since you've redacted your path, but on my GWT projects the argument passed in looks something like this:
com.lustforge.testbed.TestBed

Perhaps you need:
main.package.client.entrypoint.EntryPoint 




Sincerely,
Joseph

kratzbaumkordel

unread,
Jul 23, 2012, 2:04:32 PM7/23/12
to google-we...@googlegroups.com
Hi Joseph, thanks for your reply and sorry it took me so long!

My batch file looks like this (with real paths this time). It is located in the project's main folder (one level above src folder). The module is renamed to "testwiese" in the .gwt.xml file using <module rename-to ...>.

java -cp C:\gwt-2.4.0\gwt-dev.jar;C:\gwt-2.4.0\gwt-user.jar;C:\gwt-2.4.0\validation-api-1.0.0.GA.jar;C:\gwt-2.4.0\validation-api-1.0.0.GA-sources.jar;.\lib\gwt-dnd-3.1.2.jar;.\lib\gwt-voices-2.0.0.jar;.\src\de\crizzi\testwiese;.\src com.google.gwt.dev.Compiler -logLevel DEBUG testwiese
Reply all
Reply to author
Forward
0 new messages