Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9157227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:57:46+00:00 2026-06-17T12:57:46+00:00

I have the following situation: 2 Eclipse projects in the same workspace, Apa and

  • 0

I have the following situation:

2 Eclipse projects in the same workspace, Apa and Bepa (pseudonyms for the sake of brevity).

Project Apa references (includes) project Bepa.

I have a class X in Bepa, with public method b().
Invoking X.b() directly works fine in project Bepa.

However, creating a reference to an instance of X in Apa, and then invoking b() on this reference, results in this:

Exception in thread "main" java.lang.IllegalAccessError: tried to access method java_cup.runtime.Symbol.<init>(II)V from class de.uni_freiburg.informatik.ultimate.smtinterpol.util.MySymbolFactory$LineColumnSymbol
at de.uni_freiburg.informatik.ultimate.smtinterpol.util.MySymbolFactory$LineColumnSymbol.<init>(MySymbolFactory.java:31)
at de.uni_freiburg.informatik.ultimate.smtinterpol.util.MySymbolFactory.startSymbol(MySymbolFactory.java:95)
at java_cup.runtime.LRParser.parse(LRParser.java:393)
at de.uni_freiburg.informatik.ultimate.smtinterpol.smtlib2.ParseEnvironment.parseStream(ParseEnvironment.java:152)
at de.uni_freiburg.informatik.ultimate.smtinterpol.smtlib2.ParseEnvironment.parseScript(ParseEnvironment.java:118)
at de.uni_freiburg.informatik.ultimate.smtinterpol.smtlib2.SMTLIB2Parser.run(SMTLIB2Parser.java:47)
at de.uni_freiburg.informatik.ultimate.smtinterpol.Main.main(Main.java:121)
at de.uka.ilkd.key.keynterpol.KeYnterpolInterface.main(KeYnterpolInterface.java:36)

From what I understand, the culprit is a third-party jar referenced by B. However, I cannot for the life of me figure out why I can only use it from within Bepa, and not Apa. Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:57:47+00:00Added an answer on June 17, 2026 at 12:57 pm

    IllegalAccessError is a subclass of IncompatibleClassChangeError. If an IncompatibleClassChangeError is thrown while your code is executing, this typically indicates that the your code isn’t running with the same classes it was compiled against.

    In your case, the method that is causing the IllegalAccessError to be thrown is a constructor of the java_cup.runtime.Symbol class that has default visibility:

        Symbol(int sym_num, int state)
        {
            sym = sym_num;
            parse_state = state;
        }
    

    The code that calls this constructor is in a different package and so should not be able to call this constructor directly. Normally an error such as this is caught by the compiler, as attempting to access a package-private member from another package should cause a compiler error. In your case however, you don’t appear to have any such compiler error.

    If you are running your code with the same classpath that you’re compiling it with, then I can only guess that the java_cup.* classes appear more than once on the classpath, with different visibilities for the constructor above. The compiler must have found one copy of the Symbol class with this constructor being public and the JVM must have found a copy that had this constructor package-private.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It is the following situation: I currently have multiple Java projects in Eclipse. All
I have following situation: I have a Maven war project in NetBeans 6.7 I
I have the following situation: A project MyCompany.MyProject.Domain which contains my domain model, and
I have following situation in my project: There will be 2 source code repositories
Possible Duplicate: How does Copy-local work? I have following situation: there's a project named
Here is the situation: I have a client's java project open in eclipse. It
I have following situation - Have a MongoService class, which reads host, port, database
I have following situation. In a constructor of a pseudo class I attach a
I have following situation (simplified, of course): MyDomain.groovy: class MyDomain { MyAnotherDomain anotherDomain //
I have following situation, String a=<em>crawler</em> <em> Yeahhhhh </em></a></h3><table; System.out.println(a.indexOf(</em>)); It returns the 11

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.