It's not a secret anymore!*
The moose likes Java in General and the fly likes Debuging problem in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Debuging problem in eclipse " Watch "Debuging problem in eclipse " New topic
Author

Debuging problem in eclipse

Imran Farooqi
Greenhorn

Joined: Sep 23, 2005
Posts: 1
I have two web projects, projA and projB in the workspace of eclipse. Both the projects use different database, and having lot of source file common in both project, also the hierarchy of the most of the package is same in both the projects. The sequence of the projects in the eclipse workspace is projA and then projB.
The problem is that when I put breakpoint in the projB on file named sample.java, the debugging works on projA's sample.java.
Does anybody have any solution?
Keith Pitty
Ranch Hand

Joined: Sep 22, 2005
Posts: 32
I suggest you think about restructuring your code so that common code is in a separate project that both project A and project B refer to.

In other words, if you have a class called com.example.Sample that is required by both projects, put this in project C and update the properties of projects A and B so that their build path includes project C.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I think what Keith thinks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Debuging problem in eclipse
 
Similar Threads
Compiling a java code having different file name and class name
Error while deploying a standalone application
Eclipse Hangs When Trying to Open Build File
In eclipse Navigator view, If Found many root folders then I can say that Many projects exist in the
How to read a file packaged in a jar file