Could not load the Spoofax plugin loading classes.
Spoofax projects are not recognized with the nightly build Spoofax/IMP 1.2.0.0-s40429 using Eclipse Kepler (but this was also seen with older versions of Eclipse) with old and new workspaces.
Buildfile: /Users/eelcovisser/spoofax/workspace/dynsem/build.main.xmlcheck-classpath:
check-classpath.helper:
[echo] Could not load the Spoofax plugin loading classes.
[echo] Make sure it is on the class path.
[echo] In Eclipse, make sure the Ant builder is configured properly:
[echo] right-click on build.main.xml, go to Run as, Ant build…, JRE tab,
[echo] and ensure Run in the same JRE as the workspace is selected
[echo] alternatively, build the project using Build Project in the Project menuBUILD FAILED
/Users/eelcovisser/spoofax/workspace/dynsem/build.generated.xml:157: The following error occurred while executing this line:
/Users/eelcovisser/spoofax/workspace/dynsem/build.generated.xml:175: No messageTotal time: 253 milliseconds
Submitted by Eelco Visser on 2 September 2013 at 10:16
Issue Log
The solution seems to be an installation of Java 7. It is annoying that this requirement is not provided as a notification from Eclipse.
We can add a warning for the Java 7 requirement like the one for wrong eclipse.ini parameters. Also, the build.generated.xml could include a check for Java 7, if this is possible to check in ant.
Would that also work for legacy projects?
Yes
I added Java 7 as a requirement and a download link to the download page.
Added a check and warning in https://github.com/metaborg/spoofax/commit/988aa53fdc200d6076d4c1996f804565eb404621
Log in to post comments