update swap-file ip
add a script for createing Singleton for Java