running gwt on websphere 6 and 7? confict of java version requirments?

136 views
Skip to first unread message

Elhanan

unread,
Aug 10, 2011, 10:49:58 AM8/10/11
to google-we...@googlegroups.com
hi..

on one hand i see that there is a warning of running gwt on java lower then 1.6,
however if i would like to use webspehre 6 or even 7 ,which support spec 2.5 then i have a problem according to eclipse because it claims that the spec 2.5 does not support java 6 .

on top of that, i keep getting a warning in gwt compile of eclipse of "use of prior java version is depricated"
AND i keep getting java.lang.UnsupportedClassVersionError: Bad version number in .class file in compiling the project, although i also have a jdk 5 in eclipse, all the jdk's are configured for java 6_26.
so what should i do?

Alex Dobjanschi

unread,
Aug 10, 2011, 12:07:48 PM8/10/11
to google-we...@googlegroups.com
The message from GWT is a warning -- you can safely ignore it, as long as you stick with the configuration (those specific JRE/GWT versions).
2nd, I have no idea about websphere, but I find it very weird to not be compatible with java6;

lastly, the UnsupportedClassVersionError happens because you need to use the same Java version for both compiling (.class bytescode) and running it.

karim duran

unread,
Aug 10, 2011, 1:36:41 PM8/10/11
to google-we...@googlegroups.com
Hi Elhanan,

GWT run fine in IBM WebSphere. Take care about version problem as follow :

1) IBM WebSphere can run in JVM 1.5 or JVM 1.6
2) GWT is full supported in 1.5 but using 1.6 is just a recommendation
3) the "2.5" version you are speaking about is for servlet specification, so you have to check in IBM WebSphere libs what is "j2ee.jar" version. It's doesn't depend upon JVM version but J2EE.
4) if you compile your project ( ant task or Eclipse ) with a 1.6 java compiler, you can't run it in IBM WebSphere running a 1.5 JVM ( inverse is true ). that's why, may be, you get java.lang.UnsupportedClassVersionError

I hope it helps.

Regards.

Karim Duran

2011/8/10 Elhanan <elh.m...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/YH5f4v2mzRcJ.
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.

Reply all
Reply to author
Forward
0 new messages