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
Check this in your intelliJ settings
Do this too [Settings --> Maven --> Importing
]
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
Convert Localdate to Localdatetime or Java.Sql.Timestamp
Spring Session-Scoped Beans (Controllers) and References to Services, in Terms of Serialization
Tomcat7 Starts Too Late on Ubuntu 14.04 X64 [Digitalocean]
How to Check a Uploaded File Whether It Is an Image or Other File
Java: Subtract '0' from Char to Get an Int... Why Does This Work
Javac Source and Target Options
Arrays.Fill with Multidimensional Array in Java
How to Create an 2D Arraylist in Java
Is There a Java Library to Access the Native Windows API
The Most Sophisticated Way for Creating Comma-Separated Strings from a Collection/Array/List
Java:Does Wait() Release Lock from Synchronized Block
How to Modify JSONnode in Java
Sslhandshakeexception: No Subject Alternative Names Present
Error: Java_Home Is Not Defined Correctly Executing Maven
JPA How to Make Composite Foreign Key Part of Composite Primary Key