Why Does Intellij Give Me "Package Doesn't Exist" Error

IntelliJ says the package does not exist, But I can access the package

This is not an intellij issue.

You need to compile with the -XDignore.symbol.file option. Some internal packages
are hidden by default unless you add this option to javac.

https://bugs.openjdk.java.net/browse/JDK-7141442

sun.security.x509.CertAndKeyGen and sun.security.pkcs.PKCS10 - missing in JDK8. Implementation suggestions

Also the comment of user @user180100 is relevant and important.

The sun.* packages are not part of the supported, public interface.

A
Java program that directly calls into sun.* packages is not guaranteed
to work on all Java-compatible platforms. In fact, such a program is
not guaranteed to work even in future versions on the same platform.

Idea Intellij: Can't import the libraries: package does not exist

Don't use Maven or Gradle if you can't even manage adding a JAR to your project manually.

You should acquire those JARs (containing .class byte code files, not .java source), add them a folder in your project named /lib, and add that directory as a JAR source location in your project. They'll be in the CLASSPATH then.

You need to add the /lib folder to an artifact when you run. Be sure you know how to do that as well.

Importing to IntelliJ - Error package org.springframework.boot does not exist

Here is how my IntelliJ settings for spring boot application looks like

Click open -> browse your workspace -> and select POM.xml file
Click open -> browse your workspace -> and select POM.xml file

Check this in your intelliJ settings
Check this in your intelliJ settings

Do this too [Settings --> Maven --> Importing]

Sample Image

Intellij does not show any errors in the syntax/does not give any suggestions

Have you tried to invalidate the caches? That usually clears up issues like this. It's easy to do too: From the main menu, select File | Invalidate Caches / Restart.



Related Topics



Leave a reply



Submit