search
HomeJavaJavagetting StartedThe editor prompts that the java package does not exist

The editor prompts that the java package does not exist

Nov 22, 2019 pm 03:12 PM
javadoes not existhintPackageeditor

The editor prompts that the java package does not exist

Sometimes after we import the program, the system will give an error message: Java: package xxxx does not exist. Now I have a trick, which is to use IDEA to automatically import the Java package. This is also a major advantage of IDEA.

When an error like the one shown in the title occurs, don’t worry. This is because there is an error in configuring the Java program package. At the same time, you may not have set up IDEA to automatically load the Jar package, which is why this report is reported. kind of wrong. The solution is as follows:

File—>Setting—>Build, Execution, Deployment—>Maven—>Importing

Then configure as shown below:

The editor prompts that the java package does not exist

After configuring as shown above, click apply, then click OK. At this time, refresh IDEA and you can see that the Jar package is insufficient and a Java: package xxxx does not exist. The error will disappear automatically, and many jar packages will appear in the External Libraries on the left column, as shown below:

The editor prompts that the java package does not exist

OK, the problem is solved, it is that simple, this is IDEA The charm is that it is convenient to download the jar package and facilitate everyone's programming.

Recommended tutorial: Getting started with java development

The above is the detailed content of The editor prompts that the java package does not exist. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!