I am having the identical problem. I'm new to this however so the
solution may be trivial. But could someone please point me in the right direction.
it definitely does not work to put a single class in the import statement as in "import MyClass;". This is prohibited by the javac itself.
Besides that it's never a good idea to use classes with no package. Always use at least a single package - what's so difficult about it? It's just an additional folder and you get all the stuff of importing, correct class loader visiblity and so on.
Unfortunately I was not able to dig deeper into it until now. Maybe there's even a rule for classes in a web application not to be put into the default package... I just know that's not a good idea.
Hope that helped,
yes it did.
I eventually figured as much and went the 'package' route.