Could you elaborate? Java has maven archetypes that allow that, create a base project with no effort and the right dependencies in place.
From there on compiling is just a command away, and running it usually too.