hap497
hap497

Reputation: 162915

How can I JSDK of Intellij on MacOSX

How can I JSDK of Intellij 9.0 on MacOSX? I want to set it to JDK 1.5 on MacOSX. I have tried reintall Intellij, but it somehow remember the JSDK of my previous installation. Can you please tell me how can I reset it?

Thank you.

Upvotes: 0

Views: 998

Answers (2)

CrazyCoder
CrazyCoder

Reputation: 401877

Depending on your OS X version, you may have no JDK 1.5 installed at all (Snow Leopard 10.6.x comes with no JDK 1.5). In this case IDEA will run under the first JDK it finds, even if it's 1.6 while Info.plist specifies 1.5. If you have both JDK versions installed, Info.plist should work fine, see the IDEA FAQ.

If you want to install JDK 1.5 on Snow Leopard, see another IDEA FAQ article.

Upvotes: 0

Mark Bolusmjak
Mark Bolusmjak

Reputation: 24399

Not sure if you mean Java version IntelliJ runs under, or Java version IntelliJ uses for projects.

If it's the first:

On OS X applications are usually directories. This is true for IntelliJ.

  1. Go into the IntelliJ 9.0.app folder
  2. Go into Contents folder
  3. edit Info.plist (you will need to have installed Apple's Developer tools)
  4. There is a Java subsection that has the setting you need to change.

If it's the second, go to Project Structure -> JDKs and create whatever ones you want.

Upvotes: 1

Related Questions