Original Post
First off I think I am going overboard with making everything a class. I have these two classes in sperate packages and they rely on each other, and that makes for tight coupling which is bad right? Well I can't think of any reason why I should do it another way. The two classes are for collision detection, well actually they are interfaces. Collideable and CollisionListener Here is my directory tree source | ------com | ------impulse | ----event | | | -----CollisionListener | ----geometry | -----Collideable And here is my source for the two files So here is my question assuming you don't think what I am doing is bad, because I am not really that good and I think I cam going to crazy with classes and interfaces and whatever. How do I compile these two files? I have tried every way I can think of and it says they both need the other file to compile. So I thought I can compile them at the same time but I get an error
package com.impulse.geometry;
import com.impulse.event.CollisionListener;
public interface Collideable{
public boolean isCollideable();
public void isCollideable(boolean c);
public boolean checkCollision(Collideable other);
public void addCollisionListener(CollisionListener c);
}
package com.impulse.event;
import com.impulse.geometry.Collideable;
public interface CollisionListener{
public void collisionEvent(Collideable one, Collideable two);
}
C:\Java\engine>javac -d /class/ -cp /class/ C:/java/engine/source/com/impulse/ev
ent/*.java C:/java/engine/source/com/impulse/geometry/*.java
C:/java/engine/source/com/impulse/event/CollisionListener.java:21: error while w
riting com.impulse.event.CollisionListener: \class\com\impulse\event\CollisionLi
stener.class (The system cannot find the path specified)
public interface CollisionListener{