Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Eclipse problem "This compilation unit is not on the build path of a java project"

Posted on 2007-11-14
Medium Priority
Last Modified: 2013-12-15
I downloaded the Java EE version of the Eclipse IDE, simply be cause I'll be writing JSPs and other EJBs later on.

but first, I wanted to write a simple java program that involves printing out text.

For some strange reasons, I keep on getting the pop up
"This compilation unit is not on the build path of a java project"
every time I press the . key. It seems auto complete is running into some problems that I am not sure how to fix. Can someone teach me how to fix this?

I've defined my own class, and I wrote a test driver for it.

so I have a class like this.
public class testdriver(){
      public testdriver(){

System. gave me that problem already. let alone the custom class that I wrote.

Thanks in advance
Question by:SamsonChung
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

samalraj earned 2000 total points
ID: 20280780
ensure that the project *is* a Java project and not just a Project --
Eclipse treats them slightly differently


Author Comment

ID: 20281092
Thanks, this just reminds me why I love Gel....

Expert Comment

ID: 20281143
Welcome :)

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question