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 129462

Summary: UnsupportedClassVersionError: Bad version number in .class file
Product: platform Reporter: William Leonard <bleonard>
Component: -- Other --Assignee: issues@platform <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: jlahoda, lhasik, tzezula
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=27582
Issue Type: DEFECT Exception Reporter: 27582
Attachments: stacktrace

Description William Leonard 2008-03-06 19:56:28 UTC
Build: NetBeans IDE 6.1 Beta (Build 200803041230)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119
OS: Mac OS X, 10.5.2, i386

User Comments: 
Creating a project
Comment 1 William Leonard 2008-03-06 19:56:34 UTC
Created attachment 57911 [details]
stacktrace
Comment 2 Lukas Hasik 2008-03-07 08:47:48 UTC
reassigning to j2seproject

-this exception usually happens when you are using a compiled project with a different JDK version. However you are
creating new project, right?
Comment 3 Jan Lahoda 2008-03-07 08:57:39 UTC
Lukas, please do not re-assign these issues to J2SE Project - there is no problem in java/j2seproject. It simply calls
DataObject.createFromTemplate, which in turn calls
org.netbeans.modules.templates.ScriptingCreateFromTemplateHandler.engine() - the error is thrown inside this method. I
do not think there is anything that the J2SE project could do about this. I am not sure if templates/scripting can
improve the situation, but is seems as the most correct place in the IDE to handle these issues.

Reporter, for explanation and solution, please take a look at issue #129227.
Comment 4 Lukas Hasik 2008-03-07 10:31:37 UTC
Jan, thanks. 
I'm sorry I missed that this issue is related to Mac. I'm closing as duplicate.

*** This issue has been marked as a duplicate of 129227 ***