![]() |
java - package does not exist error
I'm trying to compile a program I'm writing using a file for one of the classes.
here's my file menu.java: Code:
public class menuCode:
import menu.*;Code:
test.java:1: package menu does not existAny ideas? |
Just comment out the "import menu.*", recompile - and Life should be Good
Here's a very good tutorial that explains the relationship between "package", "import statements" ... and how you need to put your class files in different subdirectories if you decide you need to use packages: http://www.jarticles.com/package/package_eng.html |
Ahh, I see. That worked, thanks.
I'm having a hard time understanding the difference between static and non-static methods and variables - got any good tutorials for that ? |
| All times are GMT -5. The time now is 08:06 PM. |