I have a normal java project and want it to output/write gwt files for
a gwt project. This is doing well.
My problem is to compile these outputted gwt java files at runtime of
my normal java project.
I tried this:
import com.google.gwt.dev.Compiler;
...
Compiler.main(new String[] {"protoreto.gwt.GWT_Prototype"});
<protoreto.gwt.GWT_Prototype> is the EntryPoint class. (also specified
so in the gwt.xml file)
but that doesn't work.
The output reads:
Compiling module protoreto.gwt.GWT_Prototype
Computing all possible rebind results for
'protoreto.gwt.client.GWT_Prototype'
Rebinding protoreto.gwt.client.GWT_Prototype
Checking rule <generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
[ERROR] Unable to find type
'protoreto.gwt.client.GWT_Prototype'
[ERROR] Hint: Check that the type name
'protoreto.gwt.client.GWT_Prototype' is really what you meant
[ERROR] Hint: Check that your classpath includes all
required source roots
The compilation of this is doing well with the eclipse button for it
[without changes of my configurations! so the names and location
should be right]
If anybody knows the command in this eclipse-embedded GWT Compile
Project Button, please tell me.
Maybe this command would make it at runtime to.
I think I can't use the shell command for compiling here because it
has to specify the location of the compiler.
cmd = "java -Xmx256M -cp "%~dp0\src;%~dp0\bin;D:/Inst/gwt 1.5/gwt-
windows-1.5.3/gwt-user.jar;D:/Inst/gwt 1.5/gwt-windows-1.5.3/gwt-dev-
windows.jar"
com.google.gwt.dev.GWTCompiler -out "%~dp0\www" %*
protoreto.gwt.GWT_Prototype"
Runtime.getRuntime().exec(cmd);
thanks for help,
Jenny
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---