Multiple JDK versions with 10gAS

Hi,
I deploy multiple applications on different containers on the same instance of 10gAS. Couple of applications use different versions of JDK (1.3 and 1.4).How can I make 10gAS Containers, use different versions of JDK ?
How can I make 10gAS it self, use a particular JDK (external to 10gAS installation) from a different vendor?
Please let me know the answer for the above two questions.
Thanks in advance.
Giri.

Eric has a good idea. I'll add another.
You could create a symbolic link to the new java version also, and use this to point to your JAVA_HOME for devadm.
We have a Solaris admin who installs all java versions on the box, then uses symbolic links (aka aliases) for mapping purposes such as this.
Hope this helps,
Tim

Similar Messages

  • Multiple jdk versions on solaris--best practices and advice

    I am a newcomer to solaris system administration (not by choice--I am normally just a Java programmer, but am now responsible for testing code on a new solaris box), so apologies for the newbie questions below.
    #1: is it typical for a brand new solaris install to have multiple versions of Java on it?
    After installation, which left me with this version of solaris:
         SunOS asm03 5.10 Generic_120011-14 sun4v sparc SUNW,SPARC-Enterprise-T5220I find from pkginfo, that their are 2 old versions of java installed:
         SUNWj3dev     J2SDK 1.4 development tools
    SUNWj3dmo     J2SDK 1.4 demo programs
    SUNWj3dvx     J2SDK 1.4 development tools (64-bit)
    SUNWj3irt     JDK 1.4 I18N run time environment
    SUNWj3jmp     J2SDK 1.4 Japanese man pages
    SUNWj3man     J2SDK 1.4 man pages
    SUNWj3rt      J2SDK 1.4 runtime environment
    SUNWj3rtx     J2SDK 1.4 runtime environment (64-bit)
    SUNWj5cfg     JDK 5.0 Host Config. (1.5.0_12)
    SUNWj5dev     JDK 5.0 Dev. Tools (1.5.0_12)
    SUNWj5dmo     JDK 5.0 Demo Programs (1.5.0_12)
    SUNWj5dmx     JDK 5.0 64-bit Demo Programs (1.5.0_12)
    SUNWj5dvx     JDK 5.0 64-bit Dev. Tools (1.5.0_12)
    SUNWj5jmp     JDK 5.0 Man Pages: Japan (1.5.0_12)
    SUNWj5man     JDK 5.0 Man Pages (1.5.0_12)
    SUNWj5rt      JDK 5.0 Runtime Env. (1.5.0_12)
    SUNWj5rtx     JDK 5.0 64-bit Runtime Env. (1.5.0_12)Both of these versions are years old; I am surprised that there is not just a single version of JDK 1.6 installed; it only came out, what, going on 2 years ago? I definitely need JDK 1.6 for all of my software to run.
    On my windows and linux boxes, I never usually have multiple JDKs; I always deinstall the current one before installing a new one. So, I went first to try and deinstall JDK 1.4 by executing
         pkgrm SUNWj3dev SUNWj3dmo SUNWj3dvx SUNWj3irt SUNWj3jmp SUNWj3man SUNWj3rt SUNWj3rtxThe package manager detected dependencies like
    WARNING:
         The <SUNWmccom> package depends on the package currently being removed.
    WARNING:
         The <SUNWmcc> package depends on the package currently being removed.
    [+ 8 more]and I decided to abort deinstallation because I have no diea what all these other programs are, and I do not want to cripple my system.
    If anyone has any idea what programs Sun is shipping that still depend on JDK 1.4, please enlighten me.
    #2: Is there any easy way to not only deinstall, say, JDK 1.4 but also deinstall all packages which depend on it?
    Maybe this is too dangerous.
    #3: Is there at least a way that I can find all the programs which depend on an entire group of packages like
         SUNWj3dev SUNWj3dmo SUNWj3dvx SUNWj3irt SUNWj3jmp SUNWj3man SUNWj3rt SUNWj3rtx?
    The above functionality would have come in real handy if I could have done it before doing what I describe next.
    I next decided to try removing JDK 1.5, so I executed
         pkgrm SUNWj5cfg SUNWj5dev SUNWj5dmo SUNWj5dmx SUNWj5dvx SUNWj5jmp SUNWj5man SUNWj5rt SUNWj5rtxI thought that this command would let me know of any dependencies of ANY of the packages that are listed. It doesn't. Instead, it merely checks the first one, and if no dependencies are found, then removes it before marching down the list. In the case above, it happily removed SUNWj5cfg because there were no dependencies on it. Then it stalled on SUNWj5dev because it found dependencies like:
    WARNING:
         The <SUNWmctag> package depends on the package currently being removed.
    WARNING:
         The <SUNWmcon> package depends on the package currently being removed.
    [+ 3 more]#4: Have I left my JDK 1.5 crippled by removing SUNWj5cfg? Or was this pretty harmless?
    #5: Was I fairly stupid to attempt the deinstallations above in the first place? Do solaris people normally leave old JDKs in place?
    #6: Or is it the case that those dependency warnings are harmless: I can go ahead and remove all old JDKs, because java programs will always find the new JDK and should run just fine with it?
    #7 Whats the deal with solaris and having multiple packages for something like the JDK? With Windows, for instance, the entire JDK has a single installer and deinstaller program. Its much easier to work with that the corresponding Solaris stuff. Do Solaris people simply need that much finer grained control over what gets installed and what doesn't? (Actually, with the Windows JDK, the gui installer program can let you install selected components should you wish; I am just not sure how scriptable this is versus the solaris stuff, which may be more sys admin friendly if you have to administer many machines.)

    The easiest thing to do is to just install the latest into a clean directoryI believe different versions of jdk install into their own separate directory by default. All one needs to do is recreate the symbolic links that point to the version they want to use. The java install documentation has the details.

  • Help with registering multiple XML versions with Oracle 9i

    Hello,
    I have a fundamental question. Probably someone had been in similar situation and thought of the best way to handle.
    Our product has about 15 versions that we need to support.
    Each version publishes its 'xmlschema' and is slightly different from the previous version.
    Now if I register each schema version with oracle9i it will auto-create tables for each version (even for xml elements/attributes that are same across different versions).
    2 options that we thought of so far to handle this is
    -Combine all 15 versions schema's into 1 super-set schema and register with oracle db. Fields/elements, a version does not use will be empty
    -Use XML 'extensions' in various xml schema, such that each version in 'extended' from the previous one and keeps on adding its additions attributes/elements. My question is then if I register these 15 'extended' schemas with oracle, will it create common DB tables per version or it will still create unique tables for all 15 versions.
    Anyone has any better suggestions or comments to handle this situation ?
    thanx
    -Manu

    But I'm still stuck on the problem. It still doesn't read the second object. There is no second object.
    The code is quite big, any specific portion would be helpful, please let me know?This is a minimal load and print for an XML bean:import java.io.*;
    import java.beans.*;
    import java.util.*;
    public class LoadAndPrintXMLBean {
      // run with your file name as first argument
      public static void main (String[] args) {
        try {
          XMLDecoder d = new XMLDecoder(
            new BufferedInputStream(
              new FileInputStream(args[0])));
          Object result = d.readObject();
          d.close();
          System.out.println(result);
        } catch (Exception ex) {
          ex.printStackTrace();
    }For your input, it prints[[INDEX_KEY], [7]]You have one object, a vector, containing two vectors:
      The first child vector contains the string "INDEX_KEY".
      The second child vector contains the string "7".
    This matches the structure of your XML<?xml version="1.0" encoding="UTF-8"?>
    <java version="1.4.1_01" class="java.beans.XMLDecoder">
      <object class="java.util.Vector">
        <void method="add">
          <object class="java.util.Vector">
            <void method="add">
              <string>INDEX_KEY</string>
            </void>
          </object>
        </void>
        <void method="add">
          <object class="java.util.Vector">
            <void method="add">
              <string>7</string>
            </void>
          </object>
        </void>
      </object>
    </java>There is only one object there to retrieve using readObject().
    Pete

  • Receiver Determination when multiple Product Versions / identical namespace

    Hi,
    How would the receiver determination be done when we have multiple product versions with identical namespaces and interface names ?
    During development, when we do a release transfer to another product version, the namespaces and interface names remain same as the current objects.
    How would XI resolve the correct interface in this case ?
    thanks,
    Manish

    The XI does not care about the application systems. When a message is received by the application, it knows, what to do with the messages.
    The receiver could be an RFC call, an IDOC, an Abap Proxy, here the correlation between interface and Abap code is unique.
    The receiver could be a File, or JMS adapter, here the correlation  between interface and communication channel is unique as well.
    You might reuse IDOCs or RFCs or in rare situations other interfaces in different software components and install them for the same application system. But you can only generate proxies from one interface.
    Regards
    Stefan

  • How to compile a java file with specified jdk version in a program???

    hi,
    if we want to compile a program in another program with a particular
    jdk version as an option, how to do that,plz reply and with example.

    Hi,
    To compile from a program, read this (I've never tried, but I think it
    will work):
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Compiler.html
    To get the jre version:
    System.getProperty("java.version");
    To get the vm version:
    System.getProperty("java.vm.version");
    Other properties at:
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/System.html
    Hope it helps,
    ANeto

  • HT1349 How do I find where my multiple copies of Outlook are? (It said  Multiple Outlook versions installed. You can't use iCloud when multiple versions of Outlook are installed.  To use iCloud with outlook, uninstall one version.")

    I have just started with iCloud, and run into a problem from my PC.
    It says: "
    Multiple Outlook versions installed.
    You can't use iCloud when multiple versions of Outlook are
    installed.  To use iCloud with outlook, uninstall one version.
    I have searched and found two versions of Outlook 2013 and 2015  (one of which was inactive, but I have removed it), and one of outlook.pst, which I have removed.
    Where do I go from here?

    That's a Windows/Office problem. You should ask in the Microsoft support forums.

  • Version of jdk compatible with iPlanet 5.0

    Hi,
    I want to know the version of jdk compatible with iPlanet 5.0
    thanks

    :-) I think they are using iplanet 4.1.
    It used JDK 1.2 as per [http://www.networkcomputing.com/1106/1106sp3.html|http://www.networkcomputing.com/1106/1106sp3.html]
    "iPlanet 4.1 Offers Improved Java Support and Upgraded Security
    Out of the box, iPlanet Web Server supports JavaServer Pages 1.1PR1 (and is backward-compatible with JSP 1.0), servlets (with API-level support for 2.2 PR1), native JVM (Java Virtual Machine in Java Development Kit 1.2), LiveWire (server-side JavaScript) with JavaScript 1.4, and LiveConnect 3, which uses native JVMs instead of the Netscape JVM. "

  • RMI with varing JDK versions?

    Hi,
    I have a question about using RMI and differing versions of the
    JDK. I
    have a server written in 1.1.7 and a client written in 1.2.1.
    I don't pass any JDK classes as arguments or return codes, only
    primatives and java arrays. Should this be working???
    Are there any papers that write about this situation to let me
    know the
    pros/cons??
    Thanks,
    Frank
    null

    Thanks for the suggestion.
    Sure enough, when checking the version it returns "1.3.1_01"; however, this is really confusing. When searching for "java.exe", I only return two entries: "C:\Programs\JBuilder\jdk1.4\bin\java.exe" and "C:\Programs\JBuilder\jdk1.4\jre\bin\java.exe". These are both in a folder labeled as JDK version 1.4, and are the files that JBuilder is using (which works correctly).
    Is it possible for a "java.exe" to use alternate jar files for its built-in Java functionality? Any other ideas?

  • BOE XI 3.1 jdk version

    <h4> Hi,
    Is JDK1.6 supported for BOE XI 3.1 application server?
    According to platform requirements for linux  (page 7)  it seems that  Tomcat 5.5 , jdk 1.5.0_xx is supported.
    Of course in the same document there's also written: </h4>
    Application Server Incremental Release Support Policy
    Specified application servers versions have been successfully tested by Business Objects. Incremental releases of the specified versions defined by the last number in the application server name will be supported as they are made available, but may not have been tested by Business Objects. Exceptions in support will be documented.
    JDK Version Support Policy
    JDK major versions are specified to ensure the use of correct version when there are multiple choices provided
    by the vendor. Business Objects tests and supports any _xx release installed with a given application server.
    <h4>
    So must I assume that Tomcat 6 and jdk 1.6.0_xx is supported?
    Thanks,
    Fabbio
    </h4>
    Edited by: fabbio on Sep 14, 2009 6:17 PM

    With service pack 2 tomcat 6.0 is now supported but you will need to add it as 5.5 still comes packaged with the product. JDK 1.6 was not tested with tomcat per the [supported platforms for XI 3.1 SP2|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/402db6eb-845d-2c10-a38c-aafde85ec769&overridelayout=true]
    If using other web/apps that support 1.6 (weblogic or websphere) then 1.6 can be used.
    Regards,
    Tim

  • JRC  R2 and JDK Versions

    <p>Hi,</p><p>I use Crystal Report XI R2 JRC on a Web App. </p><p>My application works fine (included all actions with the crystal viewer) with this configuration : </p><p>    -Application Server : WAS Express 5.0 </p><p>    - OS : Windows </p><p>    - platform : Intel </p><p>    - JDK : 1.4</p><p>My application does&#39;nt work fine (some actions with the crystal viewer - button next page, export PDF, etc... return an error 500) with this new configuration :</p><p>    -Application Serveur : WAS 6.1</p><p>    - OS: Linux Red Hat AS4 Updated 4 </p><p>    - Platform : Iseries</p><p>    - JDK : 1.5</p><p> </p><p>This is the error description :</p><p> Error 500: LinkageError while defining class:  com.crystaldecisions.Utilities.LengthLimitedDataInputStream Could not be defined  due to: com.crystaldecisions.Utilities.c This is often caused by having a class  defined at multiple locations within the classloader hierarchy. Other potential  causes include compiling against an older or newer version of the class that has  an incompatible method signature</p><p>If somebody can help me or knows this problem (jdk version ?) with JRC R2, </p><p>Thanks, </p><p>Jerome. </p>

    On our support site we have a document of supported platforms for various Operating systems, including Linux. In the Application server table, it lists the following configurations:
    Application Servers                 JDK
    [] OAS 10G Rel.2 (10.1.2)      1.4.2_x </p><p align="left">Tomcat 5.0.27                        1.4.2_08+ </p><p align="left">[] WebLogic 8.1 SP4            1.4.2_x </p><p align="left">WebSphere 5.1.0.4                 1.4.1_x </p><p align="left">[**] WebSphere 5.1.1.0        1.4.2_x
    WebSphere 6.0.0.2Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 1.4.2_x
    I would also suggest reviewing the platforms document
    [http://support.businessobjects.com/communityCS/TechnicalPapers/boe_xi_r2_supported_platforms_linux.pdf | http://support.businessobjects.com/communityCS/TechnicalPapers/boe_xi_r2_supported_platforms_linux.pdf]
    In your case it would seem that the issue is related to the platform you are trying to deploy on. Â
    Usually the solution is to deploy on something that is on the supported list; it is one less thing that gets in the way of a successful solution. One thing you might try, is recompiling the JARS using the newer JDK, this is not a guarunteed solution but has been known to work in the past.Â
    I do recommend, as a member of Developer Support, that you have a supported configuration, that way if you find any bugs with the product, we have an escalation path to fixing them.Â
    Merry Enns
    Technical Resource, Developer Support
    Business Objects

  • Multiple JDK installation procedure

    This is a question from a newbee in the Java world.
    - I was told that, we can install multiple JDKs in a single Linux server. Is it possible? If yes, how and what are the steps involved?
    - Will there be any problem, when newer version of JDK intallation creating any kind of disruption or currupting the already installed older version of JDK?????
    - Are there any TAR files of these JDK available, which we can just untar and use them for the programs needed?
    It will be highly appreciated if you can provide answers to my queries and also please let me know links for JDK TAR downloads.

    You can install as many JDKs as you like.
    They will not interfere with one another.
    No special steps need to be taken.
    I rarely remove old JDKs when I install a new one.
    Download current archive

  • Multiple JDKs

    Does anyone know of a simple way to switch between multiple JDKs?

    Setting the source version isn't always a safe bet.  There are several API changes in rt.jar that will compile fine as 1.3 or 1.4 using the 1.5 compiler.  However, when you take that bytecode and run it on a 1.3 or 1.4 JRE you will get ClassNotFound or NoSuchMethod exceptions all over the place. 
    Bottom line is, the compiling for older versions works great in 1.5.   Just make sure your test environment is set up with the proper support jars in the classpath to C.Y.A.

  • Can JWS be used as a multiple Java version management tool?

    WinNT4 WKS with JRE 1.3.1 - 1.4.2 loaded on it using IExplorer or Netscape.
    We don't have a need for the JWS download features because our clients (and their applications) remain static for the most part. However, we do require multiple JRE version support because our customers have written class/objet "fixes" (mostly for text rendering) and these fixes break if you try and run the application on a different version of Java from which it was written. Basically, we can't have a default JRE on each machine and hope that it will work with all customer applications. So we will load all necessary Java components on our workstations (in this case JRE versions 1.3.1 - 1.4.2). I know that browsers can be forced to load with a specific Plug-in version (providing it exists on the machine) through Object & Embed tags in the HTML and that standalone apps can be directed to the correct Java directory path. My question is, can JWS automatically identify the Java requirements of our customers applications and act simply as a multi-version management tool to provide the right JRE/Plug-In for either standalone or browser applications? Keeping in mind that all the JREs will be loaded on the workstions and it won't need to download any components from some site.
    I've noticed that JWS identifies all JREs loaded on a machine in the Java tab so I'm wondering if it can "switch" the environment as needed for each application.
    Does anyone know if I can use JWS in the scenario I described above? Thanks!

    JWS can manage the multiple JREs installed if you run the application through a .jnlp. This can not "switch" the default JRE. It runs the application specified in the .jnlp using the requested version specified in the .jnlp.
    JWS does not apply to applets. You should use the object tags as you mentioned below.
    ...can JWS automatically identify the Java requirements of our customers applications
    No. You must determine this and setup the .jnlp appropriately.

  • Multiple database versions in a server

    Hi all,
    to day i have seen the file cat /etc/oratab like
    db1:/u01/app/oracle/product/8.x.x.x/db_1:Y
    db2:/u01/app/oracle/product/9.x.x.x/db_1:N
    db3:/u01/app/oracle/product/10.x.x.x/db_1:Y
    db4:/u01/app/oracle/product/8.x.x.x/db_1:N
    here my doubts is how we can install multiple oracle versions in a single server. a server will be having only one version of operating system. suppose like if we assume our os is linux 4.7 we can install only 10g and 11g. but how we can install 8i and 9i database versions.
    how all these oracle versions are going to be install in a single server.
    please clear my doubts.
    thanks a lot...!

    899329 wrote:
    Hi all,
    to day i have seen the file cat /etc/oratab like
    db1:/u01/app/oracle/product/8.x.x.x/db_1:Y
    db2:/u01/app/oracle/product/9.x.x.x/db_1:N
    db3:/u01/app/oracle/product/10.x.x.x/db_1:Y
    db4:/u01/app/oracle/product/8.x.x.x/db_1:N
    here my doubts is how we can install multiple oracle versions in a single server. a server will be having only one version of operating system. suppose like if we assume our os is linux 4.7 we can install only 10g and 11g. but how we can install 8i and 9i database versions.
    how all these oracle versions are going to be install in a single server.
    please clear my doubts.
    thanks a lot...!Each lives in its own ORACLE_HOME. If, as it seems from your comments, you have no problem with the concept of the 10g and 11g both on the same server, why should the addition of 8.x and 9.x be any different?

  • Is it possible to change JDK version to 1.7 in Weblogic 10.3.0

    Currently, I m using web logic version 10.3.0 which is compatible with JDK 1.6.
    I would like to change the JDK from 1.6 to 1.7 will it be possible ? if so can you pls provide the steps.
    I m planning to deploy my application which runs on JDK 1.7

    Some more info, from the certification matrix (http://www.oracle.com/technetwork/middleware/ias/downloads/oracle-wls-certification-10gr3-matr-129284.xls)
    "1. JDK 7 certification is available only with WLS 10.3.6+/FMW 11.1.1.6+. Oracle does not support use of JDK 7 with WLS 10.3.1-10.3.5/FMW 11.1.1.1.0 - 11.1.1.5.0. ..."
    If you do not care about certification (and support, because that will be gone as well when running a non-certified environment) you can use the following to change the JVM.
    In the setDomainEnv file (located in the ${DOMAIN_HOME}/bin directory) find the following:
    BEA_JAVA_HOME="/home/oracle/jrockit-jdk1.6.0_29-R28.2.2-4.1.0"
    export BEA_JAVA_HOME
    SUN_JAVA_HOME=""
    export SUN_JAVA_HOME
    if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
         JAVA_HOME="${BEA_JAVA_HOME}"
         export JAVA_HOME
    else
         if [ "${JAVA_VENDOR}" = "Sun" ] ; then
              JAVA_HOME="${SUN_JAVA_HOME}"
              export JAVA_HOME
         else
              JAVA_VENDOR="Oracle"
              export JAVA_VENDOR
              JAVA_HOME="/home/oracle/jrockit-jdk1.6.0_29-R28.2.2-4.1.0"
              export JAVA_HOME
         fi
    fiby adding the JAVA_VENDOR variable you can set a specific JAVA_HOME (as can be seen from the if statement above), for example,
    BEA_JAVA_HOME="/home/oracle/jrockit-jdk1.6.0_29-R28.2.2-4.1.0"
    export BEA_JAVA_HOME
    SUN_JAVA_HOME="/home/oracle/jdk1.6.0_31"
    export SUN_JAVA_HOME
    JAVA_VENDOR="Sun"
    export JAVA_VENDOR
    if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
         JAVA_HOME="${BEA_JAVA_HOME}"
         export JAVA_HOME
    else
         if [ "${JAVA_VENDOR}" = "Sun" ] ; then
              JAVA_HOME="${SUN_JAVA_HOME}"
              export JAVA_HOME
         else
              JAVA_VENDOR="Oracle"
              export JAVA_VENDOR
              JAVA_HOME="/home/oracle/jrockit-jdk1.6.0_29-R28.2.2-4.1.0"
              export JAVA_HOME
         fi
    fiNow the Sun JVM will be used.

Maybe you are looking for

  • What are the best books to purchase for pl/sql programming?

    What are the best books to purchase for pl/sql programming? I am new to this field and I am looking for the best books to help me in pl/sql programming. Can someone please suggest? Thanks

  • Configuration of ESS and MSS in Portal for HCM

    Hello Friend's,         This is suresh calling for clarifications and doubts in HCM...   see i'm new to portal, but my requirement is to configure ESS and MSS for HCM... i dont know actually wat needs to be done and the way of approach... these are t

  • New SF300-24P 10/100 POE Switch effecting Sybase App

    I recently moved my office. I am running a small Network on Windows 8.1. The main program for my Business no longer has tech support. The program uses sybase sql anywhere 9.0 to network. When I moved from one location to another the only thing that c

  • Data association with transformation causes ORABPEL-75003

    Hi, I have a BPM process (11g) with a Service task. I have configured a data association using a transformation for the output. When I run the process I get this error: Exception: java.security.PrivilegedActionException: ORABPEL-75003 Runtime error i

  • Retrieve all class in a package

    Hi, Is there a method to retrieve all name of the class in a package, to recreate the tree of the class use in my prog I can just retrieve all the packages with Package.getPackages() and a sorting function. the Next step is : Package package = Packag