Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the commands for viewing the weblogic version in the Linux system

2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail what are the commands for viewing the weblogic version in the Linux system. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Weblogic10: the first kind: view according to registry.xml # first go to the weblogic directory [weblogic@app01 soft] $cd weblogic # look at the file [weblogic@app01 soft] $ls domain-registry.xml logs modules ocm.rsp patch_wls1036 registry.dat registry.xml user_projects utils wlserver_10.3 # check the registry.xml [weblogic@app01 soft] $cat registry.xml in this directory

Second: enter this directory by calling weblogic.jar #, where the wlserver_10.3 directory may have different weblogic version numbers. [weblogic@app01 soft] $cd weblogic/wlserver_10.3/server/lib # check [weblogic@app01 soft] $java-cp weblogic.jar weblogic.version # through the jar package. Similarly, you can also directly see the version number.

Third: view the log.txt installation log file # enter this directory [weblogic@app01 soft] $cd weblogic/logs # to view the log.txt file. This file is the information of the weblogic installation. You can also see the Weblogic Server version number [weblogic@app01 soft] $cat log.txt.

The directories of Weblogic12:Weblogic12 are somewhat different from those of Weblogic10, so you can't copy all of the way Weblogic10 is viewed.

The first: check by calling weblogic.jar # to enter this directory into the weblogic12 directory and there is no number after the wlserver. [weblogic@app01 soft] $cd weblogic12/wlserver/server/lib # check the results through the jar package. Here is an error [weblogic@app01 soft] $java-cp weblogic.jar weblogic.version Exception in thread "main" java.lang.UnsupportedClassVersionError: weblogic/version: Unsupported major.minor version 51.0 at java.lang. ClassLoader.defineClass1 (Native Method) at java.lang.ClassLoader.defineClassCond (ClassLoader.java:637) at java.lang.ClassLoader.defineClass (ClassLoader.java:621) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass (URLClassLoader.java:305) at java.net.URLClassLoader.access$000 (URLClassLoader.java:57) at java.net.URLClassLoader$1.run (URLClassLoader.java:219 ) at java.security.AccessController.doPrivileged (Native Method) at java.net.URLClassLoader.findClass (URLClassLoader.java:212) at java.lang.ClassLoader.loadClass (ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:300) at java.lang.ClassLoader.loadClass (ClassLoader.java:247) Could not find the main class: weblogic.version. Program will exit. # it's obviously a problem with the jdk version, and weblogic12 requires jdk1.8. The lower version of JDK runs the class class compiled by the higher version of JDK. For example, the error report is 51. 0, indicating that the JDK version of the project is JDK 7, and a version lower than JDK 7 is used to run the project. # the corresponding relationship between Version and JDK version: # 52.0-> 8.0 # 51.0-> 7.0 # 50.0-> 1.6 # 49.0-> 1.5 # check that the jdk version [weblogic@app01 soft] $java-version # is indeed 1.6, so the jar package calling weblogic12 will have problems java version "1.6.0-211" Java (TM) SE Runtime Environment (build 1.6.0_211-b11) Java HotSpot (TM) 64-Bit Server VM (build 20.211-b11 Mixed mode) # change the user of jdk1.8 or go directly to the installation directory of jdk1.8 and then bring the absolute path of weblogic.jar. [weblogic@app01 soft] $. / java-cp / soft/weblogic12/wlserver/server/lib/weblogic.jar weblogic.version # successful

This is the end of this article on "what are the commands for viewing the weblogic version in the Linux system?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report