I have a swing interface for installer .I call my java program for configuring weblogic server . I works well for configuring jdbc, datasource, deployment But when I configure startup class , the swing interface hangs. I have to kill the program. But it works fine from command line or jbuilder it configures startuclass also? Code is like this Regds Ashutosh MBeanQueryCommand mb=new MBeanQueryCommand(); mb.setDomain("mydomain"); mb.setType("Server"); mb.setName("myserver"); mb.setProperty("servermem"); config.addQuery(mb); MBeanDeleteCommand mdeleteStartup = new MBeanDeleteCommand(); MBeanQueryCommand qryCommandStartup= new MBeanQueryCommand(); qryCommandStartup.setDomain("mydomain"); qryCommandStartup.setName("StartApplication"); qryCommandStartup.setType("StartupClass"); qryCommandStartup.addDelete(mdeleteStartup); config.addQuery(qryCommandStartup); MBeanCreateCommand mstartup=new MBeanCreateCommand(); mstartup.setType("StartupClass"); mstartup.setName("StartApplication"); MBeanSetCommand msetStartup =new MBeanSetCommand(); msetStartup.setAttribute("Arguments" ); msetStartup.setValue("port=7001"); MBeanSetCommand msetClassname =new MBeanSetCommand(); msetClassname.setAttribute("ClassName"); msetClassname.setValue("com.cfm.pcm.core.startup.CFMStartup"); MBeanSetCommand msetfailure =new MBeanSetCommand(); msetfailure.setAttribute("FailureIsFatal"); msetfailure.setValue("false"); MBeanSetCommand msload =new MBeanSetCommand(); msload.setAttribute("LoadBeforeAppDeployments"); msload.setValue("false"); MBeanSetCommand msetTargetds =new MBeanSetCommand(); msetTargetds.setAttribute("Targets"); msetTargetds.setValue("${"+mb.getProperty()+"}"); mstartup.addSet(msetStartup); mstartup.addSet(msetClassname); mstartup.addSet(msetfailure); mstartup.addSet(msload); mstartup.addSet(msetTargetds); config.addCreate(mstartup); config.setProject(psc); configStartUP.addTask(config); psc.executeTarget("config_startup") ; shutdownServer();