convrted to java project