Solved

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

Posted on 2007-11-14
3
10,918 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now