Thursday, October 9, 2014

Re: Compiling from command line - Annotation errors

You Sholud add GWT Project into classpath in Eclipse 
Run configurationi (classpath under User Entries) 
klikd button "Add project.." and check Your GWT Project. 
Apply Run configuration
and Run

Othere settins are

Main class: com.google.gwt.dev.codeserver.CodeServer

Arg: za CodeServer klasso
Program Argumennts: -bindAddress 0.0.0.0 com.ajna4taiga.recycling.YourGWTModule
VM Arguments: -Xmx1024m

Classpath should also have src of your GWT project
classpath 
User Entries
Advance (button)
Advance folder (add src directory of your GWT project)
Applay Save run configuration

Classpath should also have 
gwt-servercode.jar gwt-dev.jar gwt-user.jar validation-api-1.0.0.GA.jar validation-api-1.0.0.GA-sources.jar mgwt-2.0.0.jar

mgwt if you have mgwt project of Daniel Kurka. If you have just gwt proje then you don't
need mgwt-2.0.0.jar



On Tuesday, October 9, 2012 3:57:34 AM UTC+2, Jy wrote:
Hello,

I'm trying to automate the process of deploying new gwt code by automating the compile process.  I've google around a ton and can't seem to find any solutions.  It's funny because it compiles no problem in Eclipse, but trying to compile on the command line has been a pain.  The errors I keep getting are essentially like so:

Compiling module com.proximate.proximate
   Resolving com.proximate.client.AppPlaceHistoryMapper
      Found type 'com.proximate.client.AppPlaceHistoryMapper'
         [ERROR] Annotation error: cannot resolve com.proximate.client.place.Home$Tokenizer
java.lang.ClassNotFoundException: com.proximate.client.place.Home$Tokenizer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:750)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:689)
        at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:498)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:648)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:663)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:809)
        at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMediator.java:439)
        at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(TypeOracleMediatorFromSource.java:52)
        at com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:164)
        at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:82)
        at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:450)
        at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:370)
        at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:360)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:252)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
        at com.google.gwt.dev.Compiler.run(Compiler.java:232)
        at com.google.gwt.dev.Compiler.run(Compiler.java:198)
        at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
        at com.google.gwt.dev.Compiler.main(Compiler.java:177)
         [ERROR] Annotation error: expected class java.lang.Class, got null
         [ERROR] Annotation error: cannot resolve com.proximate.client.place.Marketplace$Tokenizer







Please help someone!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment