MPS 3.0 - adding external jar to project
How can I add external jar file to project? It seems that the way I added jar in 2.5 doesn't work anymore - I can't find compiled java stubs model after import.
I also tried to create a "Model from Java Sources", but this thing doesn't work also (this must be MPS-18147 bug).
I also tried to create a "Model from Java Sources", but this thing doesn't work also (this must be MPS-18147 bug).
Please sign in to leave a comment.
Also, on Windows for this select-directory-component mouse wheel behaves differently from how it behaves for standard file select dialog - instead of scrolling multiple list items, it scrolls multiple pixels, which makes this control not very user friendly )
Then choose jar file:
Now you will get stubs in your Generator:
Then just import stub models that you need to main@generator model to use them.
IntelliJ IDEA is required for compilation
This is weird, since the imported jar files contain .class files, i.,e. compiled Java code. I don't expect this to be compiled at all. Any idea what went wrong?
Jos
You need to open solution settings -> choose "Java" tab -> select checkbox "Compile in MPS"
BY the way, I also had to add the jar file under the java / libs tab to be able to run it. In addition to the above procedure.