I’m trying to set up the mysql-connector to work with intellij on my Pop OS. I know it is located on /usr/share/java but when I go in “Select Library Files” to search for it, the ide cannot find this path. Any suggestions? Answer Snap/flatpack packaging systems are limiting IDE access to certain folders and files. It’s recommended to use the
Tag: intellij-idea
“No auto configuration classes found in META-INF/spring.factories” error on running Spring Boot jar artifact
I use openjdk 14.0.2, Gradle 7.1.1 and IntelliJ IDEA 2021.1.2. I have a Spring Boot project and can run it successfully. Now I want to create an executable jar file. This is build.gradle: I built main.jar artifact like it is described here; but executing this command: causes this error: For solving the problem I tried what is described here by
Cannot resolve method ‘combinations’ in ‘Sets’
I was trying to build a project in Intellij-idea with Maven and got a error saying that “Cannot resolve method ‘combinations’ in ‘Sets’ The code where the error is showing is here : The imports im using : I have guava dependency in the pom.xml, tried putting this dependency but it doesn’t work: Image with the error when i try
How to configure Intellij toString() template to align with Eclipse
Recently we moved to IntelliJ and using it for JAVA, earlier we were using Eclipse, we are able to configure the IntelliJ code format setting same as Eclipse except for toString(). toString() output in POJO is very different from eclipse as shown below, toString() in IntelliJ toString() in Eclipse Question Is there any way/setting through which I can make IntelliJ
Need to copy all files from one folder to another using java
Src folder C:temp Dest folder C:temp1 temp has one file (sample.csv)and temp1 folder is empty I need to copy sample.csv to temp1 Note: I cannot specify sample.csv anywhere in code as this name is dynamic. This is working only if I give dummy file inside dest directory. C:temp1dummy.csv (i want to specify only C:temp1 and src folder should go inside
Intellij cannot resolve method even though it is public (Java)
I have googled this a lot, invalidated the cache, and I can’t seem to find an answer. For background, this is a timetabling system using constraint solving. I have a custom class called Period with public methods getStart() and getEnd(). I also have an abstract class Constraint<V, D> and a subclass DemAvailConstratint<Demonstrator, Period>. It is in this subclass (and similarly
Java, Intellij IDEA problem Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
I have newly installed I cloned project I work with on other workstation without issues, but cannot start any class with main method and IDEA says: I found other comment to check Lombok works and I see it is fine. How to fix the problem? Answer Some configuration were rolled over by the update. How to get back to JDK8
Why is my spring boot application launching with java 11 although I created it with java 16?
I started a fresh project from https://start.spring.io/ and chose java 16 as a Framework. This is my build.gradle: I have worked with java 11 and spring boot before so I had Java 11 installed.(I use IntelliJ as my Editor) In order to start my new project, I upgraded my Java version and updated my Path/Java HOME: I checked my java
Reading resources inside dependency JAR gives NullPointerException
I have the following situation: JAR A has JAR B as dependency JAR B is packed with some resources that are loaded when JAR A calls specific methods of JAR B (loaded once and for all the lifecycle of JAR B calls) I am using Java SE 11 with IntelliJ 2021.1.3 JAR B resources tree is something like the following:
Intellij can’t read images in resources subfolder
So I have a maven project in intellij and I want to load images from the resources folder. It works perfectly for files that are directly in resources/. However, files that are in subfolder (for example resources/images/) are not found. In this example, logo.png is correctly loaded while logo1.png is not found : I could put all my files directly