There is a class a.b.c.Hello of which I would just get the Hello.class file delivered. I would like to run using something like:
java Hello //or java a.b.c.Hello This leads me to a NoClassDefFoundError. Normally I'd have the a/b/c dirs with the class insdie and I'd add them to the -classpath option, but:
- Is there a way of running a class in a package like this without having to put it inside
a/b/cto match the package name?
All solutions I've found state the directory structure has to match the package naming, but I'd like to run the .class file directly from the folder where it is without recreating the folder structure