• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't find symbol in package  RSS feed

 
Parka Teoh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Here's what I have...



---------------in the GameServlet.java-------------------

package bc313;

import bc313.GuessGameLogic;
.
.
.

-----------------in the GuessGameLogic.java-----------------

package bc313;

public class GuessGameLogic implements java.io.Serializable {
.
.
.
------------------------------------------------------------

When I compiled GameServlet.java, I have this problem. Something's amissed, but I don't know what.

 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ha! Maybe I'm psychic. It's the "." that's missing from your classpath as I mentioned in your other (though not duplicate) thread in the Sevlets forum. Look carefully at the classpath I suggested in my original post.

By the way, you don't need to explicitly import classes from the same package. However, I'm not sure if this is considered good practice or not. Anyone?

Jules
 
Parka Teoh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I've got it now.

You're everywhere.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!