This compilation unit isn't on the build path of Java Project error

Source: Internet
Author: User

Today, I checked out an item from SVN and entered it when I wrote the code. After the compilation unit is not on the build path of Java project error.

The usual items are in the input. Then there will be a corresponding code hint, but this is not. Feeling is very tangled, so found on the internet a lot of information. It's finally settled. First open your project's. project file, if you can not find this file in MyEclipse, ctrl+shift+r together Press, in the popup box directly enter the file name ...

Open the file after entering the code, save the project will have automatic prompt code ....

<?xml version= "1.0" encoding= "UTF-8"?>  <projectDescription>      <name>yourprojectname</ name>      <comment></comment>      <projects>      </projects>      <buildSpec>          <buildCommand>              <name>org.eclipse.jdt.core.javabuilder</name>              <arguments>              </arguments>          </buildCommand>      </buildSpec>      <natures>          < Nature>org.eclipse.jdt.core.javanature</nature>          <nature>org.apache.ivyde.eclipse.ivynature </nature>      </natures>  </projectDescription>

Note Replace your own project name ...

This compilation unit isn't on the build path of Java Project error

Related Article

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: 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.