Using External libraries which use external libraries themselves

Hi,

I want to use external java code in my MPS project. After looking at different threads I was able the external source code into my language by adding Model root (java_source_stubs) in my language properties and making that Model Root point to the source code folder.

I also added the path of the source code in the java tab of the language properties.

But when I tried to rebuild the language it gives error that it cannot resolve imports in the external code I'm using. Because my external code is also using some third party libraries.

In order to resolve these imports, I tried to add these external libraries as well in my language as a Root Model (java_classes),

but that didn't work either. And I got an exception stating that

java.lang.IllegalArgumentException: Path variable `C:\Users\qam7rng\Documents\language-workbench\DASP\languages\DASP\BEAGLE4EE_v1.6.0\lib\jcommon_src.zip' does not point to a directory or to a jar/zip location

I'm not sure how to resolve this issue.

 

 

1 comment
Comment actions Permalink

Hello,

Have you tried to add the jars to the Runtime solution (from the pics, seems that you are adding them to the language)?

Also, I add my jars as "java_classes", not "java_source_stubs"...

 

Regards,


Sérgio Ribeiro
Porto - Portugal

 

0

Please sign in to leave a comment.