Unsupported major.minor version 51.0 while running play framework

后端 未结 3 999
半阙折子戏
半阙折子戏 2021-02-01 17:22

I know there is version conflict. Just want someone to tell me how to resolve it. In previous stackoverflow post no one tells the solution.

Versions: Ubuntu: 12.04.1 LTS

3条回答
  •  遇见更好的自我
    2021-02-01 17:48

    On Ubuntu to change Java version for both compiling and running you need to call:

    sudo update-alternatives --config javac 
    

    and

    sudo update-alternatives --config java
    

提交回复
热议问题