Why java do not work if we copy and paste it in Extension developement?

My another guide