You have done something wrong with the packgage declaration. In the NetBeans you import a filesystem. Let's say I import the directory "c:\myclasses", that is the filesystem, let's say I have some more directories under "c:\myclasses", like
"com\myself\myjava" ( so it looks like: "c:\myclasses\com\myself\myjava" the first thing I have to write in my java code file is
"package com.myself.myjava;"
I hope this is of some help
best regards
rune
|