GWT + ProcessBuilder [英] GWT + ProcessBuilder

查看:128
本文介绍了GWT + ProcessBuilder的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在GWT中使用ProcessBuilder吗?当我声明一个新的ProcessBuilder的实例时,我得到:

Is it possible to use ProcessBuilder with GWT? When I declare an instance of a new ProcessBuilder, I get:

java.lang.ProcessBuilder is not supported by Google App Engine's Java runtime environment


推荐答案

您的问题是关于支持ProcessBuilder的GWT,您得到的错误来自Google App Engine,而不是GWT相关的。

Your question is about GWT supporting ProcessBuilder, but the error you get is from Google App Engine and not GWT related.

如果您使用GWT RPC方法中的ProcessBuilder,则不会有任何问题。但是,您正在使用Google App Engine作为您的应用程序服务器。 Google App Engine不支持ProcessBuilder,GAE不支持其他许多功能。

If you are using ProcessBuilder from a GWT RPC method you shouldn't have any problems. However, you are using Google App Engine as your application server. Google App Engine doesn't support ProcessBuilder, and a bunch of other things are not supported by GAE.

查看它会在Google App Engine中使用吗?一个引用来了解GAE是否支持您的特定功能。

Check out the Will it play in Google App Engine? as a reference to know if your particular feature is supported in GAE.

请注意, Google App Engine 不支持ProcessBuilder。 GWT在其RPC中使用常规Java,因此可以在那里使用ProcessBuilder。

It's important to note that ProcessBuilder is not supported by Google App Engine. GWT uses regular Java in its RPCs so ProcessBuilder can be used there.

这篇关于GWT + ProcessBuilder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆