How do I start Community Edition on Mac?

Answered

Hi,

Sorry for a newbie question, but I've just cloned the latest Community Edition from https://github.com/JetBrains/intellij-community/ and am not sure how to start it. I used to start it by executing  ./bin/idea.sh but now it's not there anymore. The one in ./bin/scripts/unix  is complaining about not finding things.

Also, is it still true that I need Java 1.6 to run Idea, as the manual says?

 

13 comments
Comment actions Permalink

You need to install IDEA CE from http://www.jetbrains.com/idea/download/index.html.

What you have downloaded is the source repository that you have to build first to be able to run it from another IDEA instance, see http://www.jetbrains.org/pages/viewpage.action?pageId=983225 for details.

0
Comment actions Permalink

> Also, is it still true that I need Java 1.6 to run Idea, as the manual says?

No, Java 8 is required to run IDEA since version 2016, see https://intellij-support.jetbrains.com/hc/articles/206544879.

0
Comment actions Permalink

> No, Java 8 is required to run IDEA since version 2016

Thank you. It may be a good idea to update https://github.com/JetBrains/intellij-community/blob/master/README.md then.

 

0
Comment actions Permalink

We'll fix it, thanks for the notice.

0
Comment actions Permalink

Thanks again, it appears we've missed that line with 1.6.

0
Comment actions Permalink

Actually all of these pages are correct. We indeed need to setup 'IDEA jdk' pointing to JDK 1.6 because some parts of IDEA sources are need to be compiled by JDK 1.6. However they also mention that you need to setup JDK '1.8' pointing to JDK 1.8 installation, and if you start IDEA via run configuration as described in the doc, it should use JDK '1.8' to start it.

0
Comment actions Permalink

Ah, it makes sense now!

So, now that I did not compile with JDK 1.6, what sort of troubles should I expect?

Also, if you don't mind my asking, curious what factors stood in  the way of migration to 1.8.

0
Comment actions Permalink

BTW, how do I run Community Edition from command line? The same one I've just rebuilt.

 

0
Comment actions Permalink

Actually we migrated to Java 1.8, IDEA itself now requires JDK 1.8 to run, but users may still use older versions of JDK in their projects. Since there are many cases when IDEA needs to inject its classes to classpath of user's application (e.g. to support debugging, to communicate with application servers, etc) we need to make sure that these classes are compatible with older versions. So we use JDK 1.6 to compile such modules (using javac '-target' option isn't enough in some cases). If you compile all the modules using Java 1.8 the produced IDEA may have problems with running/debugging projects under older versions of JDK.

0
Comment actions Permalink

build.xml should produce archives for different OS under out/release/artifacts directory, just unpack them and execute idea.bat/idea.sh.

0
Comment actions Permalink

Nilkolay,

Glad that you said that. It may be a good idea to explain that part in the manual, because seeing "1.6" can be a bit of a red flag to some purists (myself included). Knowing that you are in fact a 1.8 shop can be important. 

 

0

Please sign in to leave a comment.