This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216636

Summary: UnsupportedClassVersionError: logastore/Stockstable : Unsupported major.minor version 51.0
Product: guibuilder Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 145072
Attachments: stacktrace

Description Exceptions Reporter 2012-08-10 02:49:20 UTC
This bug was originally marked as duplicate of bug 153005, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105, Java(TM) SE Runtime Environment, 1.6.0-b105
OS: Windows Vista

User Comments:
GUEST: Everytime i try to bind my swing components to data or another property I encounter this exception

GUEST: Openning binding contents of a table JTable

GUEST: trying to bind a list to a jtable
toplink database oracle 9i

GUEST: Nothing, i only load a "View file" which i dont touch it months ago.

GUEST: I was trying to change to modify elements binding of a JList (JList->binding->elements:: double click)

once I set this property, I cannot modify it anymore.

keep up the good work :)
Paolo




Stacktrace: 
java.lang.UnsupportedClassVersionError: logastore/Stockstable : Unsupported major.minor version 51.0
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
   at org.netbeans.modules.form.project.ProjectClassLoader.findClass(ProjectClassLoader.java:162)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Comment 1 Exceptions Reporter 2012-08-10 02:49:23 UTC
Created attachment 122962 [details]
stacktrace
Comment 2 Tomas Pavek 2012-08-17 16:32:40 UTC
The cause is in attempt to load component classes that were compiled with a newer Java version than NetBeans runs on. E.g. if the project opened in NetBeans is set to newer Java version and its compiled classes are used in a GUI form. This can't work. There could just be some helpful message explaining the situation.

*** This bug has been marked as a duplicate of bug 154197 ***