RunningOn.WebSphere
try{ Class.forName("com.ibm.ws.runtime.WsServer"); /*It is running on WebSphere*/ }catch(ClassNotFoundException exp) { /*It is not running on WebSphere*/ }