Search code examples
mps

Import external jar in generator module of Jetbrains MPS


I want to develop a dsl for excel operations with Jetbrains MPS. I want to import Apache POI in the generator module.

I downloaded jar file of POI and tried to import it by Adding Model Root in generator like below, but it doesn't help. import jar in generator

Then I tried to import POI in main@generator like below, but I found only part of Apache libraries are offered, not including POI. import library in main@generator

Is it possible to import POI in MPS? If yes, how to properly import POI in MPS to accomplish some excel operations?


Solution

  • I guess this should covers your scenario - https://confluence.jetbrains.com/display/MPSD20171/Getting+the+dependencies+right#Gettingthedependenciesright-AddingexternalJavaclassesandjarstoaproject-runtimesolutions