• Post Reply Bookmark Topic Watch Topic
  • New Topic

package?  RSS feed

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, I have two files, with the same package declaration, in the same
directory, when i compile one, i get this error...



i get the same message regarding symbol AbstractServer, when i compile
ConnectionToClient.java

what is the problem?

why wont the applications recognize an object instantiation of the other,
when the source code is in the same directory..

Justin
 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Justin,

Do the package names match the directory? Also, are you using an IDE or are you just writing this in a text editor (sometimes the IDE might give a more detailed error message)?
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
umm, it was programmed in netbeans i believe, but im modifying in
notepad..

i just did javac *.java in that directory, and everything compiled ok..

Justin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!