I'm getting the "No STRJ InteropRegisterer classes found in JAR files" issue on my home Mac, after checking out a project that was working OK on my Mac at the office. Using a fresh instance of the nightly release didn't help. A similar issue reported on Windows is still open.

To reproduce the issue, I do:

  • check out CBSEditor from SVN as a Maven project;
  • build CBSEditor;
  • check out IMPEditor from SVN as a Maven project;
  • open any *.cbs file in IMPEditor.

I get a red flag in the buffer saying "failed to update editor" and the following in the console:

14:36 | INFO  | o.m.c.build.Builder            - Building eclipse:///IMPEditor
14:36 | INFO  | o.m.c.build.Builder            - Building 134 sources, 0 includes of language impl. org.example:CBSEditor:0.1.0-SNAPSHOT
14:36 | INFO  | o.m.c.build.Builder            - Building 24 sources, 0 includes of language impl. org.metaborg:org.metaborg.meta.lang.template:2.0.0-SNAPSHOT
14:36 | INFO  | o.m.c.build.Builder            - Building 5 sources, 0 includes of language impl. org.metaborg:org.metaborg.meta.lang.esv:2.0.0-SNAPSHOT
14:37 | ERROR | o.m.s.e.e.EditorUpdateJob      - Failed to update editor for eclipse:///IMPEditor/cbs/IMP/IMP-1.cbs
org.metaborg.core.MetaborgException: Creating outline failed
	at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:80) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:1) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.outline(EditorUpdateJob.java:319) ~[org.metaborg.spoofax.eclipse_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.update(EditorUpdateJob.java:223) ~[org.metaborg.spoofax.eclipse_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.run(EditorUpdateJob.java:130) ~[org.metaborg.spoofax.eclipse_2.0.0.20160603-105626-master.jar:na]
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) [org.eclipse.core.jobs_3.7.0.v20150330-2103.jar:na]
Caused by: org.metaborg.core.MetaborgException: Failed to load JAR
	at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadJars(StrategoRuntimeService.java:184) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadFiles(StrategoRuntimeService.java:167) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.createPrototype(StrategoRuntimeService.java:146) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.runtime(StrategoRuntimeService.java:77) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:71) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	... 5 common frames omitted
Caused by: org.strategoxt.NoInteropRegistererJarException: No STRJ InteropRegisterer classes found in JAR files: [Ljava.net.URL;@64c8c40c:file:/Users/pdm/SVN/Spoofax-2.0/CBSEditor/target/metaborg/stratego-javastrat.jar
	at org.strategoxt.HybridInterpreter.loadJars(HybridInterpreter.java:295) ~[org.strategoxt.strj_2.0.0.20160603-105626-master/:na]
	at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadJars(StrategoRuntimeService.java:182) ~[org.metaborg.spoofax.core_2.0.0.20160603-105626-master.jar:na]
	... 9 common frames omitted

Before, the cbs files would parse and analyse OK. I haven't changed the syntax or name analysis of the CBS language recently.

Eclipse: org.eclipse.platform.ide 4.5.2.M20160212-1500
Spoofax: org.metaborg.spoofax.eclipse 2.0.0.20160603-105626-master
System: Mac OS X x86_64 10.11.3

Submitted by Peter Mosses on 4 June 2016 at 15:05

On 6 June 2016 at 10:10 Gabriël Konat commented:

Try a Maven update on the projects (right click projects -> Maven -> Update Project...), then rebuild them.


On 6 June 2016 at 21:00 Peter Mosses commented:

Updating (with the option "Force Update of Snapshots/Releases" ticked) appears to have fixed the issue: both projects now build successfully again, and my cbs files parse and analyse without any errors. Many thanks for the accurate diagnosis!


On 7 June 2016 at 10:00 Gabriël Konat closed this issue.

Log in to post comments