Hi Jeeva
I had the same error before (see this
thread<http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/820482cc7a30e63e/a360cab483a461c0?lnk=gst&q=Bad+version+number#a360cab483a461c0>),
and apparently one of the libraries was compiled for Java 1.6.



On Tue, May 26, 2009 at 12:56 PM, jeeva <jeeva8...@gmail.com> wrote:

>
> i had encounter an error on gwt . i can't find what it means. please
> give some gudielines.
> Have look at my error below.
> adv thxs friends.
>
>
>
> [ERROR] Failure to load module 'com.gwtbook.Gadgets'
> java.lang.UnsupportedClassVersionError: Bad version number in .class
> file
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>        at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
> 124)
>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:242)
>        at
> com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType
> (JdtCompiler.java:140)
>        at
> com.google.gwt.dev.javac.JdtCompiler$INameEnvironmentImpl.findType
> (JdtCompiler.java:125)
>        at
> org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType
> (LookupEnvironment.java:122)
>        at
> org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage
> (PackageBinding.java:178)
>        at
> org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:
> 2187)
>        at com.google.gwt.dev.javac.LongFromJSNIChecker
> $CheckingVisitor.findClass(LongFromJSNIChecker.java:188)
>        at com.google.gwt.dev.javac.LongFromJSNIChecker
> $CheckingVisitor.getMethod(LongFromJSNIChecker.java:223)
>        at com.google.gwt.dev.javac.LongFromJSNIChecker
> $CheckingVisitor.checkMethodRef(LongFromJSNIChecker.java:100)
>        at com.google.gwt.dev.javac.LongFromJSNIChecker
> $CheckingVisitor.checkRefs(LongFromJSNIChecker.java:140)
>        at com.google.gwt.dev.javac.LongFromJSNIChecker
> $CheckingVisitor.endVisit(LongFromJSNIChecker.java:63)
>        at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse
> (MethodDeclaration.java:247)
>        at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1222)
>        at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:518)
>        at com.google.gwt.dev.javac.LongFromJSNIChecker.check
> (LongFromJSNIChecker.java:307)
>        at com.google.gwt.dev.javac.LongFromJSNIChecker.check
> (LongFromJSNIChecker.java:297)
>        at
>
> com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits
> (CompilationUnitInvalidator.java:138)
>        at com.google.gwt.dev.javac.CompilationState.compile
> (CompilationState.java:123)
>        at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:
> 477)
>        at
> com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
>        at com.google.gwt.dev.GWTShell
> $BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:252)
>        at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
> (BrowserWidgetIE6.java:72)
>        at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
> (BrowserWidgetIE6.java:139)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> (IDispatchImpl.java:294)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> (IDispatchImpl.java:194)
>        at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> (COMObject.java:117)
>        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>        at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
>        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
>        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
> >
>


-- 

Hez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to