Solved

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

Posted on 2007-11-14
3
11,037 Views
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.
      }
}

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

Thanks in advance
0
Comment
Question by:SamsonChung
  • 2
3 Comments
 
LVL 3

Accepted Solution

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

Regards,
Amal
0
 
LVL 6

Author Comment

by:SamsonChung
ID: 20281092
Thanks, this just reminds me why I love Gel....
0
 
LVL 3

Expert Comment

by:samalraj
ID: 20281143
Welcome :)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
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 use and create keystrokes in Netbeans IDE 8.0 for Windows.

840 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