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.
Build: NetBeans IDE Dev (Build 20151006-7cc8ed58149c) VM: Java HotSpot(TM) 64-Bit Server VM, 24.80-b11, Java(TM) SE Runtime Environment, 1.7.0_80-b15 OS: Windows 7 User Comments: jis: Running NetBeans 8.1 devbuild on JDK 1.7.0_80, trying to run MessageBoard sample application on the WildFly 10.0 RC2 server registered in the IDE. Looks like NB is trying to load a class from WildFly which has been compiled by Java 8. Stacktrace: java.lang.UnsupportedClassVersionError: org/jboss/as/controller/PathAddress : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(ClassLoader.java:0) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
Created attachment 156561 [details] stacktrace
For the record - WildFly 10 supports JDK8+ only. Older versions supports both JDK7 and JDK8.
(In reply to Petr Hejl from comment #2) > For the record - WildFly 10 supports JDK8+ only. Older versions supports > both JDK7 and JDK8. Hum, WF8 doesn't support Java 8 code syntax everywhere (for example in JSP). It seems that some tweacking is required also for WF9 (in jSP with static interfaces methods iirc).
(In reply to ehsavoie from comment #3) > (In reply to Petr Hejl from comment #2) > > For the record - WildFly 10 supports JDK8+ only. Older versions supports > > both JDK7 and JDK8. > > Hum, WF8 doesn't support Java 8 code syntax everywhere (for example in JSP). > It seems that some tweacking is required also for WF9 (in jSP with static > interfaces methods iirc). It was meant purely as runtime platform. So in NB 8.1 running on JDK 7 you won't be able to use upcoming WildFly 10.
As the WF10 is going to be released this month I would suggest to not to allow registration of WF10 when IDE is running on JDK7.
Fixed in web-main 5e11716c2f28. QE please verify.
verified in trunk
Petre, please integrate to release81 branch. Thanks!
Patch seems OK.
Fixed in releases branch release81 8b2a976e65cf.
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5e11716c2f28 User: Petr Hejl <phejl@netbeans.org> Log: #255737 - UnsupportedClassVersionError: org/jboss/as/controller/PathAddress : Unsupported major.minor version 52.0
verified Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.1rc2 Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.1rc2