This is an issue that can be caused under the following (rare) circumstances:

  • The project was created before 0.5.3 and does not import include/<language>-java.jar
  • The project builds the Stratego sources to a jar file
  • An editor/java/<Language>/strategies/Main.java file was added manually to the project

Stack trace:


11:56:25 org.strategoxt.imp.runtime.dynamicloading.BadDescriptorException: Could not load compiler service provider(s): [include/dadsl.jar]
11:56:25 at org.strategoxt.imp.runtime.services.StrategoObserver.reportLoadException(StrategoObserver.java:242)
11:56:25 at org.strategoxt.imp.runtime.services.StrategoObserver.loadJars(StrategoObserver.java:231)
11:56:25 at org.strategoxt.imp.runtime.services.StrategoObserver.initialize(StrategoObserver.java:164)
11:56:25 at org.strategoxt.imp.runtime.services.StrategoObserver.getRuntime(StrategoObserver.java:694)
11:56:25 at org.strategoxt.imp.runtime.services.StrategoObserverUpdateJob.analyze(StrategoObserverUpdateJob.java:29)
11:56:25 at org.strategoxt.imp.runtime.services.StrategoAnalysisQueue$UpdateJob.run(StrategoAnalysisQueue.java:80)
11:56:25 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
11:56:25 Caused by: org.strategoxt.IncompatibleJarException: Incompatible Stratego jar: file:/var/folders/65/65u7pmlKFJ0Kjh-Xi9O1V++++TI/-Tmp-/dadsl.jar-2533735389392006738.jar
11:56:27 at org.strategoxt.HybridInterpreter.registerJar(HybridInterpreter.java:281)
11:56:27 at org.strategoxt.HybridInterpreter.loadJars(HybridInterpreter.java:238)
11:56:27 at org.strategoxt.HybridInterpreter.loadJars(HybridInterpreter.java:226)
11:56:27 at org.strategoxt.imp.runtime.services.StrategoObserver.loadJars(StrategoObserver.java:226)
11:56:28 … 5 more
11:56:28 Caused by: java.lang.NoClassDefFoundError: DADSL/strategies/Main
11:56:29 at trans.Main.init(Main.java:2271)
11:56:29 …

Submitted by Lennart Kats on 6 September 2010 at 12:06

On 6 September 2010 at 12:08 Lennart Kats commented:

I don’t think we can fix this rare combination of <0.5.3 project files and manually added new project files. A quick fix for individual projects is to add an import to include/<language>-java.jar.


On 6 September 2010 at 12:08 Lennart Kats closed this issue.

Log in to post comments