Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » The tycho throwed java.lang.IllegalAccessError(Tycho)
The tycho throwed java.lang.IllegalAccessError [message #1841625] Sun, 23 May 2021 09:05 Go to next message
David Sun is currently offline David SunFriend
Messages: 45
Registered: July 2020
Member
In windows10 , From command line, I typed: mvn compile .Then the maven throwed the following exception:

Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.eclipse.tycho.core.ee.EEVersion$EEType.profileName from class org.eclipse.tycho.core.ee.EEVersion
at org.eclipse.tycho.core.ee.EEVersion.compareTo(EEVersion.java:58)
at org.eclipse.tycho.core.ee.EEVersion.compareTo(EEVersion.java:20)
at java.base/java.util.Collections.max(Collections.java:675)
at org.eclipse.tycho.core.ee.StandardExecutionEnvironment.parseEEVersion(StandardExecutionEnvironment.java:171)
at org.eclipse.tycho.core.ee.StandardExecutionEnvironment.<init>(StandardExecutionEnvironment.java:106)
at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.lambda$getExecutionEnvironment$0(ExecutionEnvironmentUtils.java:102)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1138)
at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.getExecutionEnvironment(ExecutionEnvironmentUtils.java:97)
at org.eclipse.tycho.core.osgitools.OsgiBundleProject.applyBestOfCurrentOrConfiguredProfile(OsgiBundleProject.java:547)
at org.eclipse.tycho.core.osgitools.OsgiBundleProject.readExecutionEnvironmentConfiguration(OsgiBundleProject.java:522)
at org.eclipse.tycho.core.resolver.DefaultTychoResolver.setupProject(DefaultTychoResolver.java:103)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:99)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:264)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
-------------------------------
My Maven's version is 3.8.1 and jdk is javase-11.
Can anyone help me ?
Thansk a lot!
Re: The tycho throwed java.lang.IllegalAccessError [message #1841626 is a reply to message #1841625] Sun, 23 May 2021 10:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
It's best to ask on the tycho-user mailing list:

https://projects.eclipse.org/projects/technology.tycho/contact

They'll likely want to to know which Tycho version you are using and they'll likely ask if you can reproduce the problem using Tycho 2.3.0...


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Eclipse Tutorial , Creating the Project, Accessing JUnit
Next Topic:requires org.eclipse.equinox.p2.iu
Goto Forum:
  


Current Time: Fri Apr 26 18:27:14 GMT 2024

Powered by FUDForum. Page generated in 0.02712 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top