Changing JDK of BaseLanguage

Hello everyone

I am relatively new to MPS and run into a problem that I can't solve. The problem is that I am trying to create a cell menu component. Inside the handler I want to switch the parameterObject. Now I know that this value is a string from the error message. Switch statements with string values are supported in JDK version 1.7 and above. I verified that I had JDK1.7 installed.

So my next step was to try and change the jdk version. Here I tried different things:

  • Adding a dependency to baselanguage.jdk7 in the module properties

  • Changing the compiler options in the settings

  • Rebuilding the projects

Sadly none of the above attempts were successfully. A google search wasn't very successful either. If you could please give me some pointers how i could switch to jdk1.7 i would be very grateful.

Greetings
Yannick

0

Please sign in to leave a comment.