Relative Content

Tag Archive for javaintellij-idea

How to Automate Adding Global Libraries in IntelliJ Idea

I’m working on client’s Java 8 application in IntelliJ IDEA that requires adding / re-adding two JAR files as Global Libraries to every component in the project after every code change. (Yes, this is insane.) As one can imagine, going through the process of deleting the existing Global Library references and re-adding them through the UI is time consuming and annoying. Because there are hundreds of developers working on the same code base, I cannot change this tedious process.

how to fold switch/case lines (Java code) in IntelliJ (2024.1.4 version)?

So I am looking at some vendor code that uses a switch statement. For whatever reason, the vendor decided to place the all the code inside the “enclosing” case statement, so the code is very long and is hard to read. (I would have at least converted these to individual functions that’s called when required)

Intellij error while compiling the program

Cannot run program “D:JAVAjdk-22.0.1binjava.exe” (in directory “C:UsersKRISH SHASTRIAppDataLocalJetBrainsIdeaIC2024.1compile-server”): CreateProcess error=2, The system cannot find the file specified