mark
mark

Reputation: 62846

How to replace the rhino scripting jar used by Eclipse?

I want to use Eclipse Indigo to develop some JavaScript code. But the rhino jar used by Eclipse must be older than the most recent version and it makes problems. I want to replace it with the newest build.

Does anyone know how can I replace it?

Upvotes: 1

Views: 415

Answers (1)

Paul Webster
Paul Webster

Reputation: 10654

To replace rhino used within your eclipse by JSDT, you would have to

  1. turn your rhino.jar into an OSGi bundle, similar to the org.mozilla.javascript listed on http://download.eclipse.org/tools/orbit/downloads/drops/R20120119162704/
  2. Find the feature that includes the javascript jar, maybe scanning the eclipse/features/*/feature.xml files
  3. Create a feature patch for that feature including your new version of rhino, and export
  4. Install it into you eclipse

But OSGi bundles can add valid bundle version ranges to their dependencies, so you wouldn't be able to tell if it could work without trying it, or finding all bundles that depend on rhino and checking their dependency.

Upvotes: 1

Related Questions