• Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot find symbol  RSS feed

 
Vince Aggrippino
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two classes that are part of a basic "Hello World" type of example from the Wicket project. I'm getting an error that says "cannot find symbol". My first thought was that it was related to the CLASSPATH (even though I know that error is ClassNotFoundException), but the class that it's looking for is in the current directory and "." is in the classpath.

Here's the command and output:

Here's the code I'm trying to compile:

What am I doing wrong? I know it must be something very basic.

Thank you,
Vince
 
Vince Aggrippino
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out. It was a classpath issue. The classpath needed to reference the beginning of the package. Since both classes were simply in a package named "mypackage" and I was in the mypackage directory, I needed to reference ".." rather than just "." in my classpath.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!