Thursday, February 25, 2010

Re: Unable to run ant devmode (NullPointerException)

Hi You can use
" com.google.gwt.dev.Compiler"  instead of  " com.google.gwt.dev.DevMode"
if you use GWT2.0.

Thanks,
Malli.



On Thu, Feb 25, 2010 at 3:41 AM, stinnux <me@stinnux.de> wrote:
Here it is:

 <target name="devmode" depends="javac" description="Run development
mode">
   <java failonerror="true" fork="true"
classname="com.google.gwt.dev.DevMode">
     <classpath>
       <pathelement location="src"/>
       <path refid="project.class.path"/>
     </classpath>
     <jvmarg value="-Xmx256M"/>
     <arg value="-startupUrl"/>
     <arg value="MyWebApp.html"/>
     <!-- Additional arguments like -style PRETTY or -logLevel DEBUG
-->
     <arg line="${gwt.args}"/>
     <arg value="com.mycompany.mywebapp.MyWebApp"/>
   </java>
 </target>


On 25 Feb., 06:31, "malliseven.hills" <malliseven.hi...@gmail.com>
wrote:
> Can u paste me your build.xml ?  oh  sorry may be its huge paste me at
> least  "devmode" target?
>
>
>
> On Wed, Feb 24, 2010 at 1:34 PM, stinnux <m...@stinnux.de> wrote:
> > Hello,
>
> > i am just starting to try GWT and i already fail at the "Get started
> > with the GWT SDK" section.
>
> > I am supposed to run ant devmode, but i get the following result:
>
> > tstinner@linux-2d15:~/devel/gwt/MyWebApp> ant devmode
> > Buildfile: build.xml
>
> > libs:
>
> > javac:
>
> > devmode:
> >     [java] Exception in thread "GWT Update Checker"
> > java.lang.NullPointerException
> >     [java]    at
> > com.google.gwt.dev.shell.CheckForUpdates.check(CheckForUpdates.java:
> > 256)
> >     [java]    at com.google.gwt.dev.DevModeBase
> > $1.run(DevModeBase.java:879)
> >     [java] java.lang.NullPointerException
> >     [java]    at
> > com.google.gwt.dev.shell.BrowserListener.<init>(BrowserListener.java:
> > 69)
> >     [java]    at
> > com.google.gwt.dev.DevModeBase.ensureCodeServerListener(DevModeBase.java:
> > 898)
> >     [java]    at
> > com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:888)
> >     [java]    at
> > com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1030)
> >     [java]    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:
> > 783)
> >     [java]    at com.google.gwt.dev.DevMode.main(DevMode.java:275)
>
> > BUILD SUCCESSFUL
> > Total time: 1 second
>
> > java is the sun sdk 16.0_18. I am running under SLED11 (virtualized
> > inside VirtualBox). Internet Access is possible.
>
> > Any Idea what might be wrong?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate