How to determine the version of oc4j being used?

I have an oc4j installation bereft of any release notes or version documentation. In the absence of such documents, how do I know for sure, which version of oc4j I am using?

Asked by: John492 | Posted: 28-01-2022

Answer 1

Check Server header in HTTP headers. For example with wget or curl;

wget -S <url-to-server>
curl -I <url-to-server>

or with browser, which can show HTTP headers.

There should be a header something like

Server: Oracle-Application-Server-10g/ Oracle-HTTP-Server

Answered by: Kimberly525 | Posted: 01-03-2022

Answer 2

If you have access to the OC4J JAR file, you can do:

java -jar oc4j.jar -version

Answered by: Kelvin639 | Posted: 01-03-2022

Answer 3

If you simply enter the URL of the server (like http://yourserver:yourport), you will get a welcome page stating the version.

In my case, http://myserver:7777 shows "Welcome to Oracle Application Server 10g (". If you don't know the port, try 7777, 7778 and 8888.

If you know where the Oracle software is installed, go to the ORACLE_HOME/install directory and look in the readme.txt file. This will start "The installation of Oracle Application Server xx was successful", where xx is the version. If you don't know the location of the software, you could search your file system for readme.txt files - one of them is likely to document your OC4J installation.

Answered by: Elise818 | Posted: 01-03-2022

Answer 4

You could display the OC4J-related system properties. We embed the following scriptlets into a JSP page:

<%= System.getProperty( "" ) %>


<%= application.getAttribute( "oracle.jsp.versionNumber" ) %>

Sample output:

Oracle J2EE Container: Oracle Containers for J2EE 10g (
Oracle JSP Version: Oracle Containers for J2EE 10g (

Answered by: Rafael732 | Posted: 01-03-2022

Answer 5

Some of the methods mentioned here will not work for an Oracle Application Server and they may not be supported going forward. Also, readme.txt or other files may not be updated when a patch is applied.

Recommended way is to use Oracle's official OPatch utility like this.

OPatch]$ ./opatch lsinventory  -invPtrLoc ../oraInst.loc |grep "Oracle Application Server"

Oracle Application Server PatchSet                         

Ensure that the environment variable ORALCE_HOME is set correctly and -invPtrLoc pointing to the right inventory location.

Please note that this will only work with a full installation of Oracle Application Server. It will not work for a standalone development OC4J.

Answered by: Grace748 | Posted: 01-03-2022

Answer 6

grep Version $ORACLE_HOME/config/

Answered by: Maria677 | Posted: 01-03-2022

Similar questions

Is there a way to determine Java version without seeing shell output?

I have a following problem. I am executing an OS command line from within Oracle database that executes an external jar file with some parameters. I can't see shell output but I can connect with a different user to that same server through ssh/ftp and read files. There are multiple versions of Java on that server and I would like to see which one Oracle is using. Is it possible? And before you start - no,...

Determine linux version from java

I'm wondering if there's a way to determine which version of Linux I'm running (ie differentiate between RHEL4, RHEL5) from within the JVM. I'm just looking for a consistent way to differentiate between the operating systems and their versions.

java - How to determine the Ant version when using Ant inside Eclipse?

How can I determine the version of Ant coming with Eclipse?

How to determine the Java JDK version and sdk version?

I am having "Eclipse IDE for JAVA Developers" and runtime environment 6.0. My question is how can i determine my SDK version and JDk version. And also help on how to add bouncy castle to work with my eclipse.

Determine Java version through JMX

I'm looking to remotely determine the version of Java that a particular process is running on through JMX. Specifically, I would like something like "1.6.0_26", which is what System.getProperty("java.version") would return. Through the RunTime MBean, I can check the VmName and VmVersion attributes, which give "Java HotSpot(TM) 64-Bit Server VM" and "20.1-b02", respectively. I'm not s...

java - How do I determine which version of a class my object is?

I'm trying to write a plugin into a framework application (Joget). My plugin source looks something like this: public class MyPlugin extends ExtDefaultPlugin implements ApplicationPlugin, ParticipantPlugin { ... public void execute(){ ... SecurityContextImpl secContext = (SecurityContextImpl) WorkflowUtil.getHttpServletRequest().getSession().getAttribute("SPRING_SECURITY_CONTEXT"); } }

macos - Java - Determine OS bit version

I used the answer of the following question to determine the systems bit version, which works fine besides on mac osx: How can I check the bitness of my OS using Java?? (J2SE, not os.arch) String arch = System.getenv("PROCESSOR_ARCHITECTURE"); String wow64Arch = System.getenv("PROCESSOR...

java - Determine version of Eclipse from crash dump

I have a crash dump of Eclipse and want to report a bug. For the bug report, I'd like to specify the version of Eclipse that crashed, since it might be related to the problem. Unfortunately, my usual way does not work, lm vm does not show version information: 0:048&gt; lm vm eclipse start end module name 00000000`00400000 00000000`0044f000 eclipse (defer...

java - How to determine the lucene index version?

I am writing a shell script (csh) that has to determine the lucene index version and then based on that it has to upgrade the index to next version. So, if the lucene indices are on 2.x, I have to upgrade the indices to 3.x Finally the indices need to be upgraded to 6.x. Since upgrading indices is a sequential process(2.x->3.x->4.x->5.x->6.x), I have to know the indices version before hand so that I can set the cla...

java - How do I determine which Android Gradle Plugin version is needed for my target SDK?

I am trying to sync my project with the Gradle files but every time I do it I get the same error message: WARNING: The specified Android SDK Build Tools version (27.0.0) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.2.1. My target SDK version is API 24 since I am developing an app for an Android 7.0 (Nougat) operating system. I looked ove...

What does Java use to determine if a key is a duplicate in a Map?

My first instinct is to say each key is an object, and has a hash code, which is what is used to determine if a duplicate is being inserted. However, I can't find anything to back that up for sure. Can someone provide a link that says that, or provide the real answer here? Thanks!

How can I determine what the alphabet for a locale is in java?

I would like to determine what the alphabet for a given locale is, preferably based on the browser Accept-Language header values. Anyone know how to do this, using a library if necessary ?

java - How to determine if a given URL link is a video or image?

I'm trying to take a given URL entered by user and determine if the URL is pointing to a image or a video. Example use case: When a user paste in the URL of a YouTube video, on save the page will auto display the embedded YouTube player. When a user posts URL of a picture in Flickr, on save, the page will auto display a smaller version of the Flickr image.

java - How can I determine what roles are required to access a URL with Spring Security?

I'm using Spring Security to secure a webapp. The URLs are secured like this: &lt;security:http entry-point-ref="authenticationEntryPoint"&gt; &lt;security:intercept-url pattern="/" access="ROLE_ANONYMOUS" /&gt; &lt;security:intercept-url pattern="/assets/**/*" access="ROLE_ANONYMOUS" /&gt; ... &lt;security:intercept-url pattern="/**" access="ROLE_USER" /&gt; ...

file - Java : How to determine the correct charset encoding of a stream

With reference to the following thread: Java App : Unable to read iso-8859-1 encoded file correctly What is the best way to programatically determine the correct charset encoding of an inputstream/file ? I have tried using the following: File in = new File(args[0]); InputStream...

java - Function to determine whether a poker hand is a straight?

For a homework assignment I was given a Card class that has enumerated types for the Rank and Suit. I am required to compare two poker hands (each hand is an ArrayList of 5 cards) and decide the winner. The isStraight() function is really bothering me, because I have to start over the count after the Ace. For example, QUEEN, KING, ACE, TWO, THREE Is still considered a strai...

apache flex - Intellij Cannot determine verions for JDK

Why do I get the error in intellij: Cannot determine version for JDK flex_sdk_3. Update JDK configuration.

How to determine the date one day prior to a given date in Java?

I am assuming Java has some built-in way to do this. Given a date, how can I determine the date one day prior to that date? For example, suppose I am given 3/1/2009. The previous date is 2/28/2009. If I had been given 3/1/2008, the previous date would have been 2/29/2008.

java - Can I Determine the Set of First Chars Matched by Regex Pattern?

I would like to be able to compute the set of all characters which may be matched as the first character in a string by a given instance of java.util.regex.Pattern. More formally, given the DFA equivalent to a certain regular expression, I want the set of all outgoing transitions from the start state. An example: Pattern p = Pattern.compile("[abc]def|daniel|chris|\\s+"); Set&l...

java - A Fast Way to Determine Whether A Componet is Found In JPanel

May I know how can I determine whether a component is found in JPanel? boolean isThisComponentFoundInJPanel(Component c) { Component[] components = jPanel.getComponents(); for (Component component : components) { if (c== component) { return true; } } return false; } Using loop is not efficient. Is there any better way?

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)