Peter De Winter
Peter De Winter

Reputation: 1205

How to make a Intellij jetty run configuration run on JDK7 (OS X)

I have oracle' s JDK 7 installed alongside the Apple JDK6. The JDK 7 is registered in IntelliJ (12.x) and my project is set to JDK7.

I created a jetty run configuration, but it seems he is running the jetty server against the JDK6. Of course this gives a: org/eclipse/jetty/start/Main : Unsupported major.minor version 51.0 How can I fix this?

Upvotes: 1

Views: 1025

Answers (2)

Yannick Wald
Yannick Wald

Reputation: 195

If the solution above doesn't work, try Run Configuration -> JRE -> Select Execution environment -> JavaSE-1.7

Upvotes: 0

Peter De Winter
Peter De Winter

Reputation: 1205

Under Project Settings > Project set the project SDK to the correct version.

Upvotes: 1

Related Questions