Hi
This isn’t specific to games but hopefully someone might be able to point me in the correct direction.
I have 1 main class which imports a package containing 2 smaller classes (TestClassOne and TestClassTwo).
TestClassOne has to create an instance of TestClassTwo, but when compiling TestClassOne I keep getting the error “Unable to find symbol” in reference to TestClassTwo.
Both test classes are in the dir …org/testpackage/ which I’ve added to my classpath, I’ve also done something reasonably similar to this as part of a tutorial from a book which worked.
I’ve tried putting a little test program together with the bare minimum in it incase some of the other code was tripping me up but I’m still getting the same thing. Does anyone have any ideas please? :-\
package org.testpackage;
import java.io.*;
public class TestClassOne{
public TestClassOne(){
super();
doStuff();
}
public static void doStuff(){
TestClassTwo tempTestClass = new TestClassTwo();
}
}
package org.testpackage;
public class TestClassTwo{
public TestClassTwo(){
super();
doStuff();
}
public void doStuff(){
System.out.println("I work!");
}
}
