Change Java without tmp file