Menu

I need some Java help.. Class already defined

2002-11-22
2002-11-29
  • Albion Zeglin

    Albion Zeglin - 2002-11-22

    I've converted Linear.java from a class to an interface.
    I've checked in my changes so you can see but:

    When I try to compile it it giving me an error.

    [javac] /home/albion/java/fate/fate/spatial/coordinateSystems/Linear.java:14: Class fate.spatial.coordinateSystems.Linear already defined in /home/albion/java/fate/fate/spatial/coordinateSystems/Linear.java.

    I don't see what's wrong with the source.  Does someone else see what I'm doing wrong?

    Is this perhaps an order of compilation issue?

    Thanks,
    Albion.

     
    • Richard Johnson

      Richard Johnson - 2002-11-22

      Did you change this from a class to an interface, and then neglcect to recompile _everything_?  Some other class in some other package likely has a reference to a class Linear (i.e. already defined) and it (wherevere it is) needs to be recompiled.

      That's my first guess anyway.

       
      • Albion Zeglin

        Albion Zeglin - 2002-11-22

        I've recompiled everything, removing all .class files and doing ./build.sh clean and then ./build.sh compile.

        I've checked everything back in to CVS and I'm also getting the error in LinearLocation as well.

        What happens when you check everything out and build it?  May be it's my machine's configuration.

         
    • Albion Zeglin

      Albion Zeglin - 2002-11-29

      I was misreferencing inner classes.

       

Log in to post a comment.