正在加载图片...
10/07/2006 ●S Two Modes of Running GWT App Hosted mode Your application is run as Java bytecode within the Java Virtual Machine(JVM You will typically spend most of your development time in hosted mode because running in the JVM means you can take advantage of Java's debugging facilities Web mode Your application is run as pure JavaScript and HTML, compiled from your original Java source code with the GWT Java-to-Java Script compiler When you deploy your GWT applications to production, you deploy this JavaScript and HTML to your web servers, so end users will only see the web mode version of your application GWT applications can be run in two modes &A *Hosted mode-In hosted mode, your application is run as Java bytecode within the Java Virtual Machine(JVM). You will typically spend most of your development time in hosted mode because running in the JVM means you can take advantage of Javas debugging facilities and remain within an idE like Eclipse Web mode-In web mode, your application is run as pure JavaScript and HTML, compiled from your original Java source code with the GWT Java-to JavaScript compiler. When you deploy your GWT applications to production, you deploy this JavaScript and HTML to your web servers, so end users will only see the web mode version of your application To support hosted mode, GWT ships with a special web browser with hooks into the JVM. See the GWT architecture diagram below for more informationGWT applications can be run in two modes: * Hosted mode - In hosted mode, your application is run as Java bytecode within the Java Virtual Machine (JVM). You will typically spend most of your development time in hosted mode because running in the JVM means you can take advantage of Java's debugging facilities and remain within an IDE like Eclipse. * Web mode - In web mode, your application is run as pure JavaScript and HTML, compiled from your original Java source code with the GWT Java-to-JavaScript compiler. When you deploy your GWT applications to production, you deploy this JavaScript and HTML to your web servers, so end users will only see the web mode version of your application. To support hosted mode, GWT ships with a special web browser with hooks into the JVM. See the GWT architecture diagram below for more information. Source: http://code.google.com/webtoolkit/ 7 Two Modes of Running GWT App • Hosted mode > Your application is run as Java bytecode within the Java Virtual Machine (JVM) > You will typically spend most of your development time in hosted mode because running in the JVM means you can take advantage of Java's debugging facilities • Web mode > Your application is run as pure JavaScript and HTML, compiled from your original Java source code with the GWT Java-to-JavaScript compiler > When you deploy your GWT applications to production, you deploy this JavaScript and HTML to your web servers, so end users will only see the web mode version of your application 10/07/2006
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有