creats homepage and main.java