Switch case on Strings is not compatible with Smart-GWT - java

We are using smart-gwt for our application along with Java. The switch case on strings have been introduced in Java 1.7, and used to
work in GWT 2.5.
I have upgraded my GWT version to 2.7 and Java to 1.7 but the switch case on strings is not working.
With GWT 2.5, it was showing compile errors in Eclipse but after GWT upgrade, it is not showing any such errors but it is getting runtime exceptions.
I think it is a problem with Smart GWT version, we are using smart-gwt 4.1.
Could any body tell me is my assumption is correct?

SmartClient and Smart GWT packages only require a JDK (version 1.5 or later).
From SmartGWT download page
Works fine on my projects.

GWT 2.7 unexpectedly dropped support for <script> tags in .gwt.xml files (a longstanding feature used by many projects).
We had to re-implement this feature within SmartGWT in order to be compatible with GWT 2.7. This was done about a week ago, so you just need to download a more recent patched build of 4.1:
http://smartclient.com/builds

Related

Is there any way to use GWT 2.9 with Java 11 using Eclipse GWT plugin?

We have a huge GWT project (GWT 2.7, JDK 1.7, Eclipse) everything works perfect. We are planning to upgrade to Java 11 and GWT 2.9 which has been recently released. However Java 1.7 is retiring and getting obsolete we have to move on and upgrade. Since last week we are trying to create a development environment like the existing one but there is no success. I was wondering whether anyone out there is struggling with the same issue, any hint, solution or hacking the eclipse plugin would be greatly appreciated.
Eclipse plugin comes with GWT (2.7 and 2.8.1)
Yes, you can.
download gwt-2.9.0.zip from gwtproject.org
unzip it
start Eclipse
open the preference panel
choose GWT -> GWT Settings
add gwt 2.9.0 by pressing the add button on the right

STS Grails compatibility

I'm not able to find the grails perspective in my latest release download of spring tool suite 3.8.2
I've created GRAILS_HOME varialble as C:\grails-2.4.4
path variable as %GRAILS_HOME%\bin
and similarly JAVA_HOME and its path variable.
Still not able to find the Grails perspective in STS.
The Grails support is no longer available for the Spring Tool Suite, at least not the Grails support that we worked on in the past. There was an announcement from Pivotal about the general topic a while ago: https://blog.pivotal.io/pivotal/news/groovy-2-4-and-grails-3-0-to-be-last-major-releases-under-pivotal-sponsorship. This also included to not working on the tooling for Eclipse anymore.
If you want to, you can download the final version of the Groovy-Grails-Tool-Suite from here: https://spring.io/tools/ggts/all. It is version 3.6.4, based on Eclipse 4.4.2.
The marketplace entry that is mentioned in another comment refers to this version of the Groovy-Grails support - and should not be installed on Eclipse versions higher than 4.4.2.
We also do not officially support and work on the Groovy support for Eclipse anymore, but there is still a version available that works with the latest versions of Eclipse.
If you are (or someone else is) interested in taking over those tooling projects, feel free to reach out to us. We would be more than happy to provide some support in taking over those projects.
Looks like this has been dropped some time ago:
http://docs.spring.io/sts/nan/v370/NewAndNoteworthy.html

Is GWT Mosaic still supported?

I am trying to support legacy Java web system which was initially developed using GWT 2.4 and GWT Mosaic v0.4.0. I tried to upgrade GWT version and project successfully compiled with GWT 2.5.0 but when I tried to compile it with GWT 2.6.0 I got an error with GWT Mosaic library. The reason was that GWT somewhat changed their object model concerning Element. I looked for newer versions of GWT Mosaic but found that last version deployed on the project site was dated 2010. Is this correct understanding that this project is dead and there is no way to use it with recent GWT versions?
Project is dead.
But since it is open source you could always create a clone on GitHub and upgrade it to be 2.6.0 compatible. Some people would probably be grateful for that kind of action.

JDK and JRE minimal versions required for GWT (compiling and running)

What is JDK minimal version is required for compiling GWT client code (I think JDK 1.7 for GWT 2.7) ?
What is JRE minimal version is required for running GWT RPC on servlet container (I think JRE 1.5 for GWT 2.7) ?
The only answer I found is GWT FAQ is JRE 1.5 but for compiling or running ? It is not clear for me.
In fact, I want to know what the JDK required for a developer computer and what the JRE required for a production server.
According to the build files, GWT 2.7 (and actually since 2.5.0) required Java 6: GWT is compiled with Java 6, producing Java 6-compatible classes, and runs its own tests with Java 6.
Note that GWT 2.8.0, to be released later this spring, will require Java 7.

Google App Engine's SDK compiles JSPs to class format 52.0, too high for server

I'm facing a problem where Eclipse and the App Engine SDK are building JSPs with class format 52.0, which subsequently fails to deploy as the server only accepts java 1.7 classes.
I've seen a bunch of workarounds that tell me to use a 1.7 JVM to start Eclipse. However, this is not possible due to a corresponding client application already heavily using Java 8 features.
Is there a way to get Eclipse to either:
Compile JSPs using 1.7 class formats?
or, failing that, to use a 1.8 compiler, runtime, and rt.jar to suggest for, build, debug, and run a standalone Maven project?

Categories

Resources