参考: http://cn.forums.oracle.com/forums/thread.jspa?threadID=1104035
Option-A).
Just run ". ./setWLSEnv.sh" and then run the following Program:
public class GetWebLogicVersion { public static void main(String ar[]) { System.out.println("\n\n\t Your WebLogic Version is : "+new weblogic.version().getVersions()); } }
================================
Option-B).
Or Place the following JSP Page or Code inside your Application................
<html> <body> WebLogic version: <%= new weblogic.version().getVersions() %> </body> </html>
=================================
Option-C).
Or Open a Command Window then run ". ./setWLSEnv.sh" then run the following command
java weblogic.version
OUTPUT: (something like this)
WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967
Use 'weblogic.version -verbose' to get subsystem information
Use 'weblogic.utils.Versions' to get version information for all modules
=================================
Option-D).
从<WL_HOME>/registry.xml 或 <WL_HOME>/logs/log.txt 中取得