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 228347

Summary: Maven projects doesn't compile with JDK 1.6
Product: projects Reporter: janario
Component: MavenAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED    
Severity: normal CC: janario
Priority: P1    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Log with error of Maven in NetBeans output

Description janario 2013-04-07 17:25:47 UTC
When I try to create a Maven project and compile it with JDK 1.6 it finishes with error of major.minor(51.0)
This doesn't happen if I change to JDK 1.7

Product Version = NetBeans IDE Dev (Build 20130407-92284ad70b21)
Operating System = Linux version 3.5.0-26-generic running on amd64
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Comment 1 janario 2013-04-07 17:27:57 UTC
Created attachment 133347 [details]
Log with error of Maven in NetBeans output
Comment 2 Milos Kleint 2013-04-08 08:48:10 UTC
caused by my latest changes, we will need to compile the classes that go into maven's jvm with target java 1.5
Comment 3 Milos Kleint 2013-04-08 11:39:31 UTC
http://hg.netbeans.org/core-main/rev/eda2c312d59d

this should fix it, only tested with 1.6 on mac (not 1.5)