Including a jar runtime

Hello again,

I thought I saw this in the documentation somewhere, but I'm unable to locate it now. How do I include an external jar so that my generator can reference the classes/methods/etc from there? I've tried right-clicking on the generator/runtime "folder", but no context menu appears.

Thanks,

Kevin

1 comment
Comment actions Permalink

Hello, Kevin,

You can specify runtime code in language's properties. You can read about runtime here: http://www.jetbrains.net/confluence/display/MPS/MPS+project+structure#MPSprojectstructure-languages

Since usually we generate language in some code and this code requires some support classes, languages can have runtime classpath and runtime solutions. Runtime classpath just makes available classes from it as java_stub to language's generators. Runtime solutions' models are visible to models inside the generator. Using runtime classpath is recommended when your runtime is written in java and is quite simple. In more complex situations, it is recommended to create a runtime solution.





Regards,

Konstantin

0

Please sign in to leave a comment.