java.lang.ClassFormatError: This JVM does not support constant tag 15 in class file

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Jan 6 07:28:17 PST 2011


On 06/01/11 15:24, Marcos Antonio wrote:
> I'm running under Windows, Maurizio.
Then your workaround is the simplest one (assuming you don't want to use 
Cygwin, in which case you'd be able to take advantage of the 
aforementioned scripts)...

Maurizio
>
> Marcos
>
>> Date: Thu, 6 Jan 2011 15:21:09 +0000
>> From: maurizio.cimadamore at oracle.com
>> To: marcos_antonio_ps at hotmail.com
>> CC: lambda-dev at openjdk.java.net
>> Subject: Re: java.lang.ClassFormatError: This JVM does not support constant tag 15 in class file
>>
>> If you are running under Linux, have you tried the scripts generated in
>> the folder langtools/dist/bin ?
>>
>> Maurizio
>>
>> On 06/01/11 15:16, Marcos Antonio wrote:
>>> Thanks for the help, Rémi. After supplying the flags I still got this error:
>>>
>>> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/sun/runtime/ProxyHelper
>>> at br.desenvolvimento.iu.Sistema$GerenciadorAutorizacao.exibirDialogoAutorizacao(Unknown Source)
>>> at br.desenvolvimento.iu.Sistema$GerenciadorAutorizacao.verificarAutorizacao(Unknown Source)
>>> at br.desenvolvimento.iu.Sistema$GerenciadorAutorizacao.access$200(Unknown Source)
>>> at br.desenvolvimento.iu.Sistema$2.run(Unknown Source)
>>> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
>>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>>> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>>> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>>> at java.awt.EventDispatchThread.run(Unknown Source)
>>> Caused by: java.lang.ClassNotFoundException: com.sun.runtime.ProxyHelper
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> ... 12 more
>>>
>>> but then I placed the javac.jar in the classpath and the error went away. I hope this
>>> is the recommended way to solve this last problem.
>>>
>>> Marcos
>>>
>>>> Date: Thu, 6 Jan 2011 15:05:50 +0100
>>>> From: forax at univ-mlv.fr
>>>> To: lambda-dev at openjdk.java.net
>>>> Subject: Re: java.lang.ClassFormatError: This JVM does not support constant tag 15 in class file
>>>>
>>>> On 01/06/2011 02:55 PM, Marcos Antonio wrote:
>>>>> Hello, all!
>>>>>
>>>>> I set up this simple code to test method references:
>>>>>
>>>>> public static int comp(Integer i1, Integer i2)
>>>>> {
>>>>> return i1 - i2;
>>>>> }
>>>>>
>>>>> Integer[] ints = {1, 2};
>>>>> Arrays.sort(ints, GerenciadorAutorizacao#comp);
>>>>>
>>>>> The compilation is fine but running the application produces this error:
>>>>>
>>>>> Exception in thread "AWT-EventQueue-0" java.lang.ClassFormatError: This JVM does not support constant tag 15 in class file br/desenvolvimento/iu/Sistema$GerenciadorAutorizacao
>>>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>>>> at java.lang.ClassLoader.defineClass(Unknown Source)
>>>>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>>>>> at java.net.URLClassLoader.defineClass(Unknown Source)
>>>>> at java.net.URLClassLoader.access$100(Unknown Source)
>>>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>> at br.desenvolvimento.iu.Sistema$2.run(Unknown Source)
>>>>> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
>>>>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>>>>> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>>>>> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>>>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>>>>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>>>>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>>>>> at java.awt.EventDispatchThread.run(Unknown Source)
>>>>>
>>>>> Am I missing something? I'm using JDK 7 b123 with the latest lambda updates.
>>>>>
>>>>> Thank you.
>>>>>
>>>>> Marcos
>>>>>
>>>> Currently the support in the VM is experimental, some you have to run
>>>> with these flags:
>>>> java -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic ...
>>>>
>>>> Rémi
>>>>
>>>
>   		 	   		
>



More information about the lambda-dev mailing list