Re: [gwt-contrib] Re: Can someone explain me why I get the following error?
How did you recognized that? is that 51.0 in Unsupported major.minor version (for me it is a non-sense) ? Jip. Each Java Version writes its own internal version into each class file. Java 8 = 52.0 Java 7 = 51.0 Java 6 = 50.0 ... A given JVM can only load classes up to their own version number. If the class version number is higher than the supported one for a given JVM then you get the above error containing the version number of the class file that could not be loaded. -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: Can someone explain me why I get the following error?
Thank you for the useful info! 2013/10/17 Jens jens.nehlme...@gmail.com How did you recognized that? is that 51.0 in Unsupported major.minor version (for me it is a non-sense) ? Jip. Each Java Version writes its own internal version into each class file. Java 8 = 52.0 Java 7 = 51.0 Java 6 = 50.0 ... A given JVM can only load classes up to their own version number. If the class version number is higher than the supported one for a given JVM then you get the above error containing the version number of the class file that could not be loaded. -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] Re: Can someone explain me why I get the following error?
Seems to point that JavaScriptObject.class was compiled in java 7 mode but the codeserver is running in a java 6 vm. On Wednesday, October 16, 2013 2:19:54 PM UTC-7, Cristiano wrote: Hi All maybe I can be a little off-topic posting here but this is not an usual user question and hopefully some contributor can help me. I want to understand an error that I get in DevMode. The error is the following: 00:00:09,841 [ERROR] Unable to initialize static dispatcher java.lang.UnsupportedClassVersionError: com/google/gwt/core/client/JavaScriptObject$ : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1121) at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1194) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at com.google.gwt.dev.shell.JsValueGlue.set(JsValueGlue.java:220) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:347) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) at java.lang.Thread.run(Thread.java:680) I'm not working on the standard release of GWT, I'm running a custom build coming from current GWT development. To make things more weird, I'm running the application on a Jetty 7 server (with -noserver option) and debugging with DevMode using the following code snippet: String[] newArgs = (-noserver -war target/webapp -startupUrl gwt.html + -logLevel INFO -codeServerPort 9997 + net.cristcost.test.gwt.DemoApp).split( ); DevMode.main(newArgs); I get that error when I try to open the page with the GWT app in DevMode ( http://localhost:8080/gwt.html?gwt.codesvr=127.0.0.1:9997) With GWT 2.5.1 everything was working, but I had an issue and I needed to exclude org.eclipse.jdt.core dependency from the project due to incompatibility with GWT: dependency groupIdorg.eclipse.jetty/groupId artifactIdjetty-jsp/artifactId version${jetty.version}/version scopetest/scope !-- This dependency cause issue in GWT compilation in DevMode -- exclusions exclusion artifactIdorg.eclipse.jdt.core/artifactId groupIdorg.eclipse.jetty.orbit/groupId /exclusion /exclusions /dependency (in fact, I am really trying 2.6.0 nightly to see if this problem will persists) Can someone give me some light on the error and explain it? I want to see if I find some workaround. Thank you, Cristiano -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] Re: Can someone explain me why I get the following error?
Looks like your DevMode is running with Java 6 but it tries to load classes that are compiled against Java 7. I would guess you have compiled GWT trunk using Java 7 (as its probably the default in your operating system) but Eclipse is configured to still use Java 6 to run DevMode. GWT trunk is fully compatible to Java 7 and you could reconfigure Eclipse to use Java 7 for your GWT project to fix the problem. If your server, you plan to deploy to for production, still needs Java 6 you must make sure that your build script uses -target 1.6 for the java compile so that Java 6 can load classes. -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: Can someone explain me why I get the following error?
Good catch! It is true I compiled GWT with Java 7 and my eclipse may be launching it still with Java 6! I'll check it immediately. How did you recognized that? is that 51.0 in Unsupported major.minor version (for me it is a non-sense) ? Thank you! Cristiano 2013/10/17 Jens jens.nehlme...@gmail.com Looks like your DevMode is running with Java 6 but it tries to load classes that are compiled against Java 7. I would guess you have compiled GWT trunk using Java 7 (as its probably the default in your operating system) but Eclipse is configured to still use Java 6 to run DevMode. GWT trunk is fully compatible to Java 7 and you could reconfigure Eclipse to use Java 7 for your GWT project to fix the problem. If your server, you plan to deploy to for production, still needs Java 6 you must make sure that your build script uses -target 1.6 for the java compile so that Java 6 can load classes. -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: Can someone explain me why I get the following error?
Yes, I confirm it is working and I no more have a conflict with with Jetty 7's org.eclipse.jetty.orbit/org.eclipse.jdt.core/3.7.1, inherited by org.eclipse.jetty/jetty-jsp/7.6.12.v20130726 ;-) Thank you Cristiano -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.