问题
I am running Trace compass on Ubuntu 18.04. I installed eclipse from Ubuntu Software but when I run Trace compass I get the error log:
eclipse.buildId=unknown
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -data @noDefault
!ENTRY org.eclipse.osgi 4 0 2018-05-20 18:51:41.714
!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:410)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
回答1:
Try downloading version 4.8 from http://www.eclipse.org/downloads/ here.Worked for me.
来源:https://stackoverflow.com/questions/50440132/eclipse-application-crashes-on-ubuntu-18-04