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

  • SEARCH
  • Home
  • 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 5958641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:34:20+00:00 2026-05-22T18:34:20+00:00

In abstract, my problem is the following: I want to access a class contained

  • 0

In abstract, my problem is the following: I want to access a class contained in an Eclipse plugin from a Java Project. Is it possible? I’ve included that class in the “Exported Packages” of the plugin, which supposedly are “all the packages that this plug-in exposes to clients.” Can my Java project be a “client” or only other plugins can be clients?

More concretely, I’ve encountered this problems when using XText. I built an editor for a language, and programs written with this language are stored in a text based format that follows the grammar defined with XText.

I want my users to be able to write Java programs that load and manipulate those xtext-based files. For that, they need to access all the classes that XText generated in the plugin project. However, I haven’t been able to use those classes: in an Eclipse instance that is running the plugin with my editor, those classes are not visible.

How can I access them? The only solution I’ve found is to export my plugin as a jar and then include it in the Build Path of the Java project, in the other Eclipse instance, but this doesn’t sound elegant.

Another way of looking at this problem is the following: I want a certain class to be available to any Java project built in an Eclipse instance where a certain plugin is loaded. How can I do it?

Thanks for your help.

PS. I’m launching the second Eclipse instance (the one where the plugin is loaded) from within the first Eclipse instance.

  • 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-05-22T18:34:21+00:00Added an answer on May 22, 2026 at 6:34 pm

    Once you generate your XText support, you need to make sure every package is exported from the Runtime tab by editing your MANIFEST.MF.

    Then once you deploy your plugins into an eclipse, that eclipse environment will be able to see those classes.

    But that would only help other plugin developers. Java apps can see classes that exist on the classpath (if you add the plugin jars, for example) but as most eclipse plugins depend on the eclipse lifecycle to work, it’s unlikely that their java programs would run. That’s not always the case (you can use JFace without a running eclipse) but only for plugins specifically designed that way.

    If your plugin is installed, you can create a java project and add the plugin jar as an external jar, using *ECLIPSE_HOME* variable. If your plugin is a project in the workspace, you can depend on it (from the java build path) just like another java project. But since it’s a plugin, that probably won’t help them run.

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

Sidebar

Related Questions

I have the following problem. I have this pretty class and now I want
I have the following problem: 1) There is some abstract class A with several
I have an abstract base class that I'm referencing from one of my entities.
I have a base class that has an abstract getType() method. I want subclasses
Consider the following problem: You have a class 'A' that serves as a base
I want to write something like the following: internal class InternalData { } public
I have the following idea: Business object implemented as interface or abstract class with
I have the following problem - made abstract to bring out the key issues.
I have the following setup: abstract class AParentLy{ private $a; private $b; function foo(){
I am faced with the following conundrum: Our software has an abstract base class

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.