Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error when running gradlew on Ubuntu 20.04 #69

Open
ahmedwaqar opened this issue Aug 26, 2022 · 5 comments
Open

Build error when running gradlew on Ubuntu 20.04 #69

ahmedwaqar opened this issue Aug 26, 2022 · 5 comments

Comments

@ahmedwaqar
Copy link

I specified the paths in gradle,properties according to the installation instruction. When I ran the gradlew, it exit with the following the error:

BUILD FAILED
**/mbeddr.formal/build/scripts/build_all_scripts.xml:150: Could not create type generate due to java.lang.N
oClassDefFoundError: org/jdom/JDOMException
at jetbrains.mps.build.ant.MpsLoadTask.(MpsLoadTask.java:51)
at jetbrains.mps.build.ant.generation.GenerateTask.(GenerateTask.java:24)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.apache.tools.ant.AntTypeDefinition.innerCreateAndSet(AntTypeDefinition.java:318)
at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:264)
at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:219)
at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:206)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:286)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:264)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:427)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:165)
at org.apache.tools.ant.Task.perform(Task.java:349)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.Main.runBuild(Main.java:830)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1383)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1338)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1093)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 25 more

Process 'command '**/mbeddr.formal/build/jbrDownload/jbr/bin/java'' finished with non-zero exit value 1

Omitting the local path with **. For a first go, it looks like a Java error but I couldn't figure out what causes it. Is there a workaround to this issue?

@danielratiu
Copy link
Member

danielratiu commented Aug 31, 2022 via email

@ahmedwaqar
Copy link
Author

Thanks Dan. I checked the path again and it has no spaces in the name. Unfortunately, its not working and I'm getting the same exception. This is my path variables in gradle.properties:

mpsHomeDir=/home/waqaahmed/Downloads/Softwares/MPS-2021.3.1/MPS-2021.3/
mbeddr.formal.home=/home/waqaahmed/Documents/Misc/Documents/Personal_Notes/tools/mbeddr.formal

@danielratiu
Copy link
Member

danielratiu commented Sep 2, 2022 via email

@ahmedwaqar
Copy link
Author

Thanks. With MPS 2021.1 the build is successful. But when I tried to open the project with MPS, it is giving me the errors like Used language com.mbeddr.formal.base.* is not deployed. I setup the path variable and also tried to copy and the paste the plugins from mbeddr.formal.mps-plugins but it doesn't work.

@danielratiu
Copy link
Member

danielratiu commented Sep 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants