Java path updated and generalized