Problem in packages in importing in Eclipse

Posted by user384706 on Stack Overflow See other posts from Stack Overflow or by user384706
Published on 2011-01-11T07:42:44Z Indexed on 2011/01/11 7:53 UTC
Read the original article Hit count: 193

Filed under:
|

Hi (I am using Galileo),

I am trying to import some existing projects into Eclipse. The structures for their packages is:

Project/
        /src
          /java
             /a
              /b
                /c

Once imported in the package explorer I see:

Project
  src/java
       --a
         --b
            --c
               - AClass.java

This is ok, since the classes e.g. AClass.java are defined in package: a.b.c But in one project the structure (once imported) becomes:

Project
  src
     --java
        --a
          --b
            --c
              - AClass.java

And that causes the error that AClass.java is defined to be in package a.b.c but it is actually under java.a.b.c
Why is this happening? Why in this specific project java is not ignored as part of package?
Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse