Package already exists. Note:views might filter empty parent packages. Solution

Source: Internet
Author: User

2 packages built in eclipse

Com.sys.dao and Com.sys.dao.imp

Later deleted the Com.sys.dao, Com.sys.dao when the package will prompt the package already exists

So is this package still in the form of a folder in the disk workspace?

We find the workspace and we find out that this bag really doesn't exist.

Well, the thing is this bag really doesn't exist, but eclipse is not allowed to build

In this project to find a random bag, build a class file and the first line automatically generated

The package declaration is changed to the package we want to create. Here I need to change into package com.sys.dao;

At this point eclipse will prompt for the error (nonsense) and we'll use it for this classic quick fix


This does not let us build, we can not find the Com.sys.dao bag and magically appeared we will move to the good


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.