Click to See Complete Forum and Search --> : Question about file placement


KingJaymz
March 2nd, 2004, 01:13 PM
So I've run into a problem. When my SortedList file is in the directory that it seems it should be in (ch03\genericLists\), it won't compile properly (will not find the other classes somehow. But when it's in the root directory (ch03\), it compiles fine. Is there a reason for this that I can't figure out? Sorry for the stupid question, but I'm really confused about this. Is it because of the package ch03.genericLists at the top of the code?

tk_Sajesh
March 2nd, 2004, 11:30 PM
did u set the Classpath attribute?

cjard
March 3rd, 2004, 11:59 AM
the compiler takes no notice of PACKAGE directives - only the jvm uses those to determine where a class is relative to where it should be.

please attempt to compile the class, then copy and paste (right click titlebar, choose properties, enable quickedit, click ok, save properties for future.. then use leftmouse to highlight a region, rightmouse to copy) the results here