What's the simplest way to compile java source files without an IDE?
I'm mainly using Java for algorithms, and these questions don't really need full fledged project environments. Although being able to import some reusable classes would be nice.
In Go, I'm able to structure my project like so:
$HOME/src/<dir>/<dir>
And compiling it ends up in $HOME/bin/*
(apps) or $HOME/pkg/<dir>/<dir>
(libraries).
Is there some way to do something like this, but for java?