I am using . I have created an emty project with jdk 17 and I have downloaded a project from spring initialzr, I have tried to import it inside my project but nothing appear after clicking of File -> New -> Module from existing source.
Windows 11, JDK 17.
Intellij version :
IntelliJ IDEA 2022.2.4 (Ultimate Edition)
Build #IU-222.4459.24, built on November 22, 2022
Licensed to khalid tounoussi
Subscription is active until September 27, 2023.
For educational use only.
Runtime version: 17.0.5+7-b469.71 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2016M
Cores: 8
Non-Bundled Plugins:
com.tabnine.TabNine (0.8.7)
com.jinsihou.react.snippets (1.1.1)
org.intellij.plugins.junitgen (2.0.12)
com.poratu.idea.plugins.tomcat (4.3.8)
com.jetbrains.jax.ws (222.4459.16)
com.intellij.spring.batch (222.4459.16)
com.github.setial (4.0.2)
GrepConsole (12.15.211.6693.1)
com.intellij.lang.jsgraphql (3.3.0)
com.yiycf.plugins.mavenDependencyHelper (2.5)
com.haulmont.jpab (2022.5.2-222)
MavenRunHelper (4.23.222.2964.0)
Kotlin: 222-1.7.10-release-334-IJ4459.24
I have tried to open first the project in intellj ( the project that I have download it from spring initliazr ) and it works fine.
I have excluded windows defender from analysing all the folders of the project.
If I use spring initialzr for building projects in intellj, it works fine.
Related
I am using IntelliJ Community edition for for Automation test using Java. I have observed that IntelliJ stops responding for while when I am typing. Some times it takes like 1 to 2 minutes to respond while I type. Even it goes blank when I switch the windows between the applications.
I am using:
**OS:** Windows 10 Pro, 64 bit OS
**IntelliJ version:**
IntelliJ IDEA 2020.1.4 (Community Edition)
Build #IC-201.8743.12, built on July 21, 2020
Runtime version: 11.0.7+10-b765.65 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Non-Bundled Plugins: gherkin, cucumber-java
Does anybody is facing this issue?
I need to add my installed Java 11 version to the project settings, because of this error (Error:java: invalid source release: 11).
When i go to project structure -> Project settings -> Project there it just shows Java 1.8.
When i try to add "java-11-openjdk-amd64" it fails with the reason "The selected directory points to a JRE, not a JDK.".
java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
The java application is available in the Java Runtime Environment (JRE). The fact that java is available in version 11 does not necessarily mean that the Java Development Kit (JDK) is also installed for version 11. However, IntelliJ needs the JDK which includes tools like the compiler javac.
In order to use Java 11 in IntelliJ, you need to install the Java 11 JDK.
For example on Ubuntu you can do that by executing:
sudo apt install openjdk-11-jdk
IntelliJ recognize lombok annotations including #FieldNameConstants and I can import the generated fields via: import static com.somepackage.SomeClass.Fields.field (even autocomplete works after typing 'SomeClass' or 'Fields').
However when I want to build the project it says :
java: cannot find symbol
symbol: class Fields
location: com.somepackage.SomeClass
Intelli version:
IntelliJ IDEA 2019.3 (Community Edition)
Build #IC-193.5233.102, built on November 28, 2019
Runtime version: 11.0.4+10-b520.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 2000M
Cores: 4
Registry:
Non-Bundled Plugins: Lombook Plugin
Lombok version:
1.18.8 (tried it also with 1.18.10)
The same project(maven based springboot) works well in eclipse.
Lombok is correctly installed and annotation preprocesing is enabled. I have tried several uninstalls (both the ide and lombok) and clean project imports. Same result.
my plugin project can't find any java classes.
How can I make my project compile again?
I'm developing on manjaro
project: https://github.com/axaluss/power-mode-intellij-plugin
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.1.2
DISTRIB_CODENAME=Juhraya
DISTRIB_DESCRIPTION="Manjaro Linux"
IntelliJ IDEA 2019.2.4 (Community Edition)
Build #IC-192.7142.36, built on October 29, 2019
Runtime version: 11.0.4+10-b304.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.2.21-1-MANJARO
GC: ParNew, ConcurrentMarkSweep
Memory: 1948M
Cores: 6
Registry:
Non-Bundled Plugins: Batch Scripts Support, CMD Support, dcevm, de.ax.powermode, mobi.hsz.idea.gitignore, net.seesharpsoft.intellij.plugins.csv, org.intellij.scala, BashSupport, org.toml.lang, some.awesome
I figured it out.
Somehow the "project sdk" was broken.
I set it up freshly while I was figuring it out.
But somehow deleting it and creating it a second time fixed it.
Can't compile a java 9 project in IntelliJ IDEA with module-info.
Create a project
Add module
Create a class with with a main (without module-info.java it runs)
Add Module-info.java
Run Main Fails
Configuration
Module-info
module httpexample {
}
Error
Error:(1, 1) java: file should be on source path, or on patch path for module
Intellij Version
IntelliJ IDEA 2017.1.2
Build #IU-171.4249.39, built on April 25, 2017
JRE: 1.8.0_112-release-736-b16 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.11.1
It appears to be a new issue caused by Java 9 update 166, I've reported it in YouTrack, please follow for updates:
IDEA-172212 Compile Error under JDK9-167
I am using IntelliJ EAP 2017.2 build 1909.2 and this is not an issue anymore
I have installed IntelliJ 2017.2 EAP and JDK 9 build 169 and opened my module system projects and it works fine, now my system info is:
IntelliJ IDEA 2017.2 EAP
Build #IU-172.2103.15, built on May 12, 2017
IntelliJ IDEA EAP User
Expiration date: June 11, 2017
JRE: 1.8.0_152-release-845-b3 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.4