   Java: Package Problems
  Hey all,I''m doing a group project for part of my uni work, and i''m the lucky one whos been nominated to put it all in packages.Everything is in the package ''palmer'', and all the screens should implement PScreen, which is an interface through which the main program interacts with the screens.I''ve set the classpath so Java knows about the palmer package, but i''m still having problems. I get:G:\Java\jdk\bin>javac G:\UniProject\palmer\login\Intro.javaG:\UniProject\palmer\login\Intro.java:6: package palmer.interfaces does not existimport palmer.interfaces.*;^G:\UniProject\palmer\login\Intro.java:8: cannot resolve symbolsymbol  : class PScreenlocation: class palmer.MainScreenclass MainScreen extends JFrame implements ActionListener, PScreen    ^2 errorsfrom the code:   package palmer;import javax.swing.*;import java.awt.*;import java.awt.event.*;import java.net.URL;import palmer.interfaces.*;class MainScreen extends JFrame implements ActionListener, PScreen{...Now, if i change the last import line to "import palmer.*", i get rid of the first error, but not the second (so i know the classpath is setup ok). I have the following files and directories:palmer\palmer\interfaces\palmer\interfaces\Interfaces.javapalmer\interfaces\PScreen.classI''ve also tried using "import palmer.interfaces.PScreen;", but it still says "package palmer.interfaces does not exist".Interfaces.java is this file:   package palmer.interfaces;import javax.swing.*;import java.awt.*;interface PScreen{...Anyone know whats wrong with this?Cheers,Steve 
  *bump*Anyone? ;  that should be public interface, without the access modifier it''s package protected. ;  This is just a guess, it really depends on the IDE you have setup and such, but one thing you could check is if you have the class path looking at the proper directory, if the compiled classes are put into a seperate directory. ;  AP: Ah, good point. But it didn''t fix the problem - i still get the same error Jonbca: I''m using the command line to build the app. But it can find the palmer package ok, just not palmer.interfaces...Thanks for the replies ;  try this, change "palmer.interfaces" to "interfaces" for your package declaration , and then if it isn''t in a subdirectory of the palmer package, place it in one, with the name interfaces. Hopefully that works out for you.  ;  Nope, same thing I posted on the Java forums at sun.com, but no reply yet... ;  Try :cd G:\UniProject\javac -classpath . palmer\login\Intro.javaDoes it work ? ;  Woo, got it working now . The thread i posted is HereI wasn''t setting the classpath the correct way Thanks for all the replies,Steve 