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 8663739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:03:37+00:00 2026-06-12T17:03:37+00:00

I have this kind of problem. I have Clojure code contained in Eclipse plug-in

  • 0

I have this kind of problem. I have Clojure code contained in Eclipse plug-in (denoted A) in *.clj files. I don’t want AOT compilation. However, I need to load the clojure code from another Clojure plug-in B. This is possible when B depends on A. Clojure can easily access the classpath and everything works. But I want the plug-in A to be plugged as extension to B. But there is a problem because I could not find a way how to load a Clojure file contained in A from *.clj file contained in B. I would like to use the Clojure ‘load’ function which can load *.clj files from classpath but this function just cannot see contents of plug-in A event when I explicitely start the plug-in like this

 (org.eclipse.core.runtime.Platform/getBundle "A")

Reaction to Laurent’s answer

Laurent, thank you very much! This is very interesting. However, I think this mayby solves a harder problem then my original one. You discribed how to call clojure code from java plug-in which is totaly awesome. I need to call clojure code from clojure plug-in which I think may be easier. I imagine that I would create extension point and provide clojure functions like this

<extension point="transforms">
  <function namespace="my.nemaspace" fn="my-transform"/>
</extension>

So I do not need any magic with IExecutableExtensionFactory. I can read the extension registry from clojure code. What I cannot do is load the function specified in the extension. Is this doable or did I just misunderstood something? I noticed that you are using clojure.osgi. This looks cool, is there any documentation for that project?

  • 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-12T17:03:38+00:00Added an answer on June 12, 2026 at 5:03 pm

    Another solution occured to me: it is possible, in Eclipse, despite what I said in my previous answer, to create cyclic dependencies between the classloaders!

    Eclipse guys needed to introduce this so that certain types of libraries (log4j, etc.) could work in an OSGi environment (which is what Eclipse is based upon).

    This requires to leverage the Eclipse-BuddyPolicy mechanism (Third Party libraries and classloading).

    It’s quite easy: if you want plugin B to see all classes and resources of plugin A, just add this to plugin B’s META-INF/MANIFEST.MF file:

    Eclipse-BuddyPolicy: dependent
    

    The line above indicates that plugin B’s classloader will be able to access what its dependents classloaders have access to.

    I created a sample set of plugins named A and B where B has 2 commands (visible in the top menu) : the first applies a text transformation on the “hello” hard coded string by calling clojure code in B. The second dynamically loads an new text transformation from plugin A, so that when you invoke the first command again, you see the result of applying transformations from B and transformations from A.

    In your case, it may not even be required to use Eclipse Extension Point / Extension mechanism at all, after all. It will all depend on how you intent plugin B to “discover” plugin A relevant information.

    The github repository showing this in action: https://github.com/laurentpetit/stackoverflow-12689605

    HTH,

    —
    Laurent

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

Sidebar

Related Questions

I have this kind of problem where I want to download some images that
I'm sure this is the kind of problem other have solved many times before.
I have this kind of code below, how can I bind the visibility of
I have used this code (kind of tutorial) at http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5 ... In this code,
I ve got a problem with allocating cli::array in function. I have this kind
I'm having a problem here.. Supposed I have this kind of datetime. $date =
I have this kind of html code : .content { background-color:#3C2B1B; overflow:auto;} .menu {
I have a very strange problem with wordpress. I have this kind of pages:
It is design problem. Let's assume that we have this kind of model in
I have this kind of resource: var Products = $resource('companies/:companyId/products') The problem is, that

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.