imports not recognized with source subdirectory [message #147773] |
Mon, 08 March 2004 12:32  |
Eclipse User |
|
|
|
Originally posted by: rjc.lambent.net
I have imported a project that was developed in JBuilder. It is organized
as follows:
build.xml
src/com/....
test/com/...
If I create the eclipse project at the 'src' level, builds work fine. But
I want to take advantage of the package and deployment targets in the
build.xml, and build.xml is not included when the project is created at
this level. So I created a different version of the project using the
top-level directory so it includes build.xml, src, and test. I configured
the source directories via Project Properties -> Java Build Path ->
Source, where I have entries of
myProject/src
myProject/test
There are internal jars to be added to the classpath at the top-level lib
directory, which I have added in Project Properties -> Java Build Path ->
Libraries.
But with this arrangement, my imports can't be resolved. For example,
src/com/rad/tra/Bridge.java contains
import org.apache.commons.codec.binary.Base64
but eclipse says "The import org.apache.commons cannot be resolved".
The (slightly truncated) .classpath file contains:
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/commons-codec-1.1.jar"/>
<classpathentry kind="output" path="build"/>
</classpath>
Any hints?
Thanks,
Rich
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02915 seconds