8
votes

I'm starting a new project and considering moving to Java 8 already, since newest Spring Framework 4.0 supports it, and it's not so long until final release this march.
Currently we are using STS 3.4 (Eclipse 4.3.1 based) and I have installed latest JDK8 and Java 8 (BETA) support. Simple projects seems to find themselves at home with Java 8, but not UI project (Dynamic Web Module 3.0, the one deployed on server). I'm getting error that compiler version (1.8 BETA) doesn't match installed project facet "Java" (1.7). And there is no such option "1.8" in "Java" project facet...
Have anybody succeeded running UI project with Java 8?
Thanks!

1
I've also got this problem. Not sure how to get a 1.8 facet :(Ajax
This is bugs.eclipse.org/bugs/show_bug.cgi?id=426884 , unfortunately the attached patch does not seem to work (just tried the update size mentioned in the comments).JavaGuy
Thanks for information! Hope with official release of Java 8 WTP will start supporting it very soon! :)Serzhas
There is a work around given in this link but it does not work for me stackoverflow.com/questions/21955207/…Jay

1 Answers

6
votes

Have you tried to install WTP's org.eclipse.jst.common.fproj.enablement.jdt.feature.patch from here?

http://download.eclipse.org/webtools/patches/drops/R3.5.2/P-3.5.2-20140329045715/repository

You might also want support for Java 8 in Maven, PDE, and JDT.

For those features, use these sites:

If you happen to be a fan of JBoss Tools, it's coming directly to JBoss Central:

https://issues.jboss.org/browse/JBIDE-17002