Tag: eclipse neon

Eclipse Neon.1generics编译错误:无法推断类型参数

MWE : import java.util.Comparator; import java.util.TreeMap; import static java.util.Arrays.asList; import static java.util.stream.Collectors.groupingBy; import static java.util.stream.Collectors.mapping; import static java.util.stream.Collectors.toList; public class ShouldCompileInEclipse { void doesNotCompileInEclipse() { asList(“eclipse”).stream() .collect(groupingBy( this::function, () -> new TreeMap(Comparator.reverseOrder()), mapping(this::function, toList()))); } String function(String s) { return s; } } 为什么代码不能在Eclipse下编译? Version: Neon.1a Release (4.6.1) Build id: 20161007-1200 错误是: Cannot infer type […]

无法创建Eclipse工作区

今天我下载了Eclipse Neon。 当我第一次运行它时,它要求我选择一个文件夹作为我的工作区。 执行此操作后,它会抛出一个错误,将我重定向到我选择保存工作区的文件夹中的日志文件: !SESSION 2016-11-08 18:30:23.149 ———————————————– eclipse.buildId=4.6.1.M20160907-1200 java.version=9-ea java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=el_GR Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product !ENTRY org.eclipse.osgi 4 0 2016-11-08 18:35:48.594 !MESSAGE Application error !STACK 1 org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:386) at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:294) at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:490) at […]