If you don't have Java installed, and you click on a project in Java mode, you can download it, even if you're not logged in!
Offline
Java is a separate entity from Scratch. Sure the player runs in Java, but they have different properties. I don't think it's possible for the Scratch Team to make it so that you can only download Java while logged in, so anyone viewing a project who doesn't have it can download it.

Offline