Dev mode without GUI

337 views
Skip to first unread message

Evgeny V Mustafin

unread,
Jun 23, 2011, 9:51:33 AM6/23/11
to Google Web Toolkit
How to run dev mode without gui via ant task. I want to run it from
ssh.

David Chandler

unread,
Jun 23, 2011, 1:30:14 PM6/23/11
to google-we...@googlegroups.com
On a Unix-based system, you should be able to export your DISPLAY (or set it to null?) and then run ant devmode as per


I haven't tried running without the GUI, but I routinely export my display via SSH to use dev mode console running remotely from my local machine.

/dmc

On Thu, Jun 23, 2011 at 9:51 AM, Evgeny V Mustafin <evgeniy....@gmail.com> wrote:
How to run dev mode without gui via ant task. I want to run it from
ssh.

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

Evgeny V Mustafin

unread,
Jun 24, 2011, 9:05:12 AM6/24/11
to Google Web Toolkit
shh has no gui. i have only command line.
Here the exception:

[root@dev-c2c gwt]# ant -buildfile ant.gwt.xml
Unable to locate tools.jar. Expected to find it in /usr/java/
jre1.6.0_24/lib/tools.jar
Buildfile: /usr/java/gwt/ant.gwt.xml

run.dev.mode:

devmode:
[java] java.lang.RuntimeException: Error running on Swing UI thread
[java] at com.google.gwt.dev.SwingUI.invokeAndWait(SwingUI.java:395)
[java] at com.google.gwt.dev.SwingUI.initialize(SwingUI.java:239)
[java] at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:
880)
[java] at com.google.gwt.dev.DevMode.doStartup(DevMode.java:417)
[java] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:
1045)
[java] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
[java] at com.google.gwt.dev.DevMode.main(DevMode.java:309)
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at java.awt.EventQueue.invokeAndWait(Unknown Source)
[java] at com.google.gwt.dev.SwingUI.invokeAndWait(SwingUI.java:391)
[java] ... 6 more
[java] Caused by: java.awt.HeadlessException
[java] at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
[java] at java.awt.Window.<init>(Unknown Source)
[java] at java.awt.Frame.<init>(Unknown Source)
[java] at javax.swing.JFrame.<init>(Unknown Source)
[java] at com.google.gwt.dev.SwingUI$3.run(SwingUI.java:247)
[java] at java.awt.event.InvocationEvent.dispatch(Unknown Source)
[java] at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[java] at java.awt.EventQueue.access$000(Unknown Source)
[java] at java.awt.EventQueue$1.run(Unknown Source)
[java] at java.awt.EventQueue$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(Unknown Source)
[java] at java.awt.EventQueue.dispatchEvent(Unknown Source)
[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
[java] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[java] at java.awt.EventDispatchThread.run(Unknown Source)

On 23 июн, 21:30, David Chandler <drfibona...@google.com> wrote:
> On a Unix-based system, you should be able to export your DISPLAY (or set it
> to null?) and then run ant devmode as per
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...
>
> I haven't tried running without the GUI, but I routinely export my display
> via SSH to use dev mode console running remotely from my local machine.
>
> /dmc
>
> On Thu, Jun 23, 2011 at 9:51 AM, Evgeny V Mustafin <
>

Thomas Broyer

unread,
Jun 24, 2011, 9:23:31 AM6/24/11
to google-we...@googlegroups.com
See http://www.hungry.com/~jamie/xexport.html

> xhost +dev-c2c
> ssh root@dev-c2c
> export DISPLAY=mymachine:0.0
> ant -buildfile ant.gwt.xml

not tested, but should work, according to David above. Your DevMode will run on dev-c2c but its window will be displayed on your own machine. It's of course a bit harder if your desktop is not running an X server (such as Windows), but you can install one quite easily.

Evgeny V Mustafin

unread,
Jun 24, 2011, 10:58:01 AM6/24/11
to Google Web Toolkit
thanks. cound you explain me step by step what i should do?

i'm novice in linux;


On 24 июн, 17:23, Thomas Broyer <t.bro...@gmail.com> wrote:
> Seehttp://www.hungry.com/~jamie/xexport.html
Reply all
Reply to author
Forward
0 new messages