Added java files for app and applet.