Questions tagged [intellij-idea]

IntelliJ IDEA is an IDE by JetBrains. It primarily supports Java development, but also supports JavaScript, Groovy, HTML, CSS, RSS, R, Haskell, PHP, Ruby, Python, Scala, Swift, Clojure, Kotlin, Hybris, Gradle and others. Questions specifically concerning usage and problems in both Community and Ultimate Editions should use this tag. However, if you have a problem with something else and just happen to be using IntelliJ, please don't use this tag.

IntelliJ IDEA is an IDE by JetBrains. It is often simply referred to as "IDEA" or "IntelliJ". First released in 2001, it is mostly focused on boosting the developer's productivity, providing a wide set of automated refactorings to ease evolutions of the codebase.

Its rich plugin development API can be used to add almost any type of functionality, including support of new languages and frameworks, and has been used to provide VCS integration (Git, CVS), build management (Maven, Gradle, Ant), database tools and support for Spring and JEE application servers.

The Ultimate (commercial) version of the tool offers support for enterprise-class development, while the open-source (free) version is often used for Android, Groovy, Scala, and web development. A 30-day, fully functional trial of the Ultimate Edition for various platforms can be downloaded for free.

Questions about how to use IntelliJ and problems you may be experiencing with it are all welcome. However, if you're using IntelliJ but your problem seems to be with something else then you probably don't need to use this tag.

Useful links

Related tags

Old version tags

The list of version specific old tags. Most of 'em seem to be obsolete and could be rolled into the current one or removed.

42912 questions
144
votes
31 answers

IntelliJ IDEA shows errors when using Spring's @Autowired annotation

IntelliJ IDEA is showing errors when I use Spring's @Autowired annotation in the class, but the class is functioning without any problem. Here is this error message: Autowired members must be defined in the valid spring bean…
Vainlyh
  • 1,615
  • 2
  • 12
  • 11
144
votes
10 answers

How to set Java SDK path in AndroidStudio?

I had Java 1.7.0_21 installed and I installed 1.7.0_45 today after uninstalling the previous version. Now Android Studio has stopped compiling projects and says that it cant locate the 1.7.0_21 folder. How can I set the new path for Java SDK? I have…
Teshan N.
  • 2,307
  • 3
  • 30
  • 59
143
votes
2 answers

Difference between Android Studio and IntelliJ IDEA with plugins?

We have an existing Java code base where we use IntelliJ IDEA for development. We are building an Android application where we will be sharing code and other resources with the pre-existing code and resource base. As Android Studio seems mainly to…
peterk
  • 5,136
  • 6
  • 33
  • 47
143
votes
8 answers

IntelliJ Debugger slow: Method breakpoints may dramatically slow down debugging

When I start IntelliJ debugger, it shows a tooltip that says: Method breakpoints may dramatically slow down debugging The debugger takes a long time to start. How can I solve this problem?
Ronald
  • 2,721
  • 8
  • 33
  • 44
143
votes
5 answers

Turning off "created by" stamp when generating files in IntelliJ

I can't find an option for this. For example, when I create a new Scala class, this text is placed in the file: /** * Created by ben on 6/23/14. */
blaha
  • 2,685
  • 4
  • 16
  • 19
142
votes
3 answers

How to add semicolon after method call when inside parameter list in IntelliJ IDEA?

I'm finally making the voyage back to IntelliJ via Eclipse. Currently my Eclipse is set up so that if I currently have a statement such as this (where ^ denotes where my cursor currently sits): foo.bar("hello"^) and I hit the semi-colon (;) key,…
digiarnie
  • 22,305
  • 31
  • 78
  • 126
142
votes
18 answers

Class file has wrong version 52.0, should be 50.0

I'm trying to compile my project in IntelliJ idea. I'm using a class in an external jar file and on compilation receiving the following error. Class file has wrong version 52.0, should be 50.0 I understand that it's saying the jar file was compiled…
jaywayco
  • 5,846
  • 6
  • 25
  • 40
141
votes
7 answers

Use IntelliJ to generate class diagram

How do I get IntelliJ 10.5 (on the Mac) to generate a class diagram showing all of the classes in my project? I'm sure I'm overlooking something obvious, but I can only get the "Show Diagram" feature to show one class at a time. (I also figured…
Zack
  • 6,232
  • 8
  • 38
  • 68
141
votes
15 answers

Debugging Scala code with simple-build-tool (sbt) and IntelliJ

What's the easiest way to debug Scala code managed by sbt using IntelliJ's built-in debugger? The documentation from "RunningSbt" from sbt's google code site lists commands for running the main class for a project or the tests, but there seem to be…
Matthew
  • 2,151
  • 2
  • 17
  • 13
141
votes
7 answers

Clear code coverage information in IntelliJ

I have configured IntelliJ to paint the background of any line that has been executed at runtime to green when running in Coverage mode. At times, I would like to just make all the files in the project revert back to their old and typical background…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
141
votes
15 answers

"Cannot start compilation: the output path is not specified for module..."

I have a very simple Java + Gradle project. It builds fine. It runs fine from the shell with "gradle run". However, if I try to run inside of IntelliJ, I get: Cannot start compilation: the output path is not specified for module "xyz" Specify the…
clay
  • 18,138
  • 28
  • 107
  • 192
141
votes
16 answers

Error "can't use subversion command line client : svn" when opening android project checked out from svn

I'm new to Android development and the development tools around it. I have checked out a project from svn using TortoiseSVN client (can't manage to do it from within Android Studio), then get this error message after importing the project to Android…
har07
  • 88,338
  • 12
  • 84
  • 137
141
votes
9 answers

How to debug a maven goal with intellij idea?

Can you debug a maven goal with Intellij IDEA? I know that I can right-click and run Debug. However, the maven plugin does not appear in my External Libraries list, so I can not go into the code and set a breakpoint. Thus, Debug runs through the…
rweng
  • 6,736
  • 7
  • 27
  • 30
140
votes
10 answers

Android Studio shows wrong file contents

I have an odd problem with Android Studio. Here is how my class file looks like on Android Studio And here is what it looks like on a text editor. Any ideas why it is happening? I have tried closing then reimporting the project, invalidate caches…
Jeongbebs
  • 4,100
  • 7
  • 34
  • 60
140
votes
7 answers

IntelliJ and Tomcat.. Howto..?

Using Netbeans, I develop sites with Tomcat as the local server to manage it. In Netbeans it was "Install, write hit Run and it works" How do I pull the same thing off in IntelliJ? I can't find step-by-step instructions for this.
Mantar
  • 2,710
  • 5
  • 23
  • 30