WebLogic 9.0 with Sun JDK and JVMTI

WebLogic 9.0 runs a JVMTI agent fine with JRockit, but when using the BEA supplied Sun JVM it gives following error "Could not reserve enough space for object heap". I tried all kind of settings for Xms, Xmx, PermSize and MaxPermSize, but no luck. Anyone any suggestions?
Thanks,
Luc

WebLogic 9.0 runs a JVMTI agent fine with JRockit, but when using the BEA supplied Sun JVM it gives following error "Could not reserve enough space for object heap". I tried all kind of settings for Xms, Xmx, PermSize and MaxPermSize, but no luck. Anyone any suggestions?
Thanks,
Luc

Similar Messages

  • [svn:fx-trunk] 11488: Resubmitting binary distribution of xercesPatch. jar from the third party module in the SDK and compiled it with Sun JDK 1.4 .2_12.

    Revision: 11488
    Author:   [email protected]
    Date:     2009-11-05 17:10:10 -0800 (Thu, 05 Nov 2009)
    Log Message:
    Resubmitting binary distribution of xercesPatch.jar from the third party module in the SDK and compiled it with Sun JDK 1.4.2_12.
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-16818 - Must open-source the code for xercesPatch.jar.
    Reviewer: Discussed with Gordon
    Tests run: Checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-16818
    Modified Paths:
        flex/sdk/trunk/lib/xercesPatch.jar
        flex/sdk/trunk/modules/thirdparty/xerces-patch/build.xml

    Did you try this:
    http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421

  • -Xmx1024M is working with Jrockit but not with Sun JDK.

    Hi,
    We have a window server box with 8GB RAM. in which there are few other processes running apart from that we have more than 1GB space available.
    We have weblogic 10.3 present in this system. when we try to Run a managed server with JRockit JVM with -Xmx as 1024M -- it is allocating the space properly.
    but when we try the same with Sun JDK , it is failing to allocate memory.
    Please let me know if any one have come across this situaton.

    Maybe you have a large number of DLLs loaded and have insufficient amounts of contiguous free memory for the Sun JVM? Unlike Sun, JRockit does not require a contiguous heap.
    Background:
    http://blogs.oracle.com/jrockit/2008/09/how_to_get_almost_3_gb_heap_on_windows.html
    Edited by: Henrik (JRockit PM) on 2009-sep-15 07:17

  • GC taking long time when using Concurrent Mark Sweep GC with Sun JDK 150_12

    We are having problem of Garbage collection taking too long. We are using Weblogic 9.2 and Sun JDK 150_12
    Below are the memory arguments we are using. We are using Concurrent Mark Sweep GC. What we are observing is Young Generation is getting filled up and consequent tenured generation also hangs with long pauses.
    Below are the JVM arguments we are using
    -Xms2560M -Xmx2560M -Xloggc:${LOGDIR}/gc.log -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60 -XX:NewSize=512m -XX:MaxNewSize=512m -XX:MaxPermSize=256m
    I have seen many forums where there are many reported issues with Concurrent Mark Sweep garbage collection with Sun JDK, but with different recommendations. But did not find any defnite recommendation. Please advice.
    - - Tarun

    We are having problem of Garbage collection taking too long. We are using Weblogic 9.2 and Sun JDK 150_12
    Below are the memory arguments we are using. We are using Concurrent Mark Sweep GC. What we are observing is Young Generation is getting filled up and consequent tenured generation also hangs with long pauses.
    Below are the JVM arguments we are using
    -Xms2560M -Xmx2560M -Xloggc:${LOGDIR}/gc.log -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60 -XX:NewSize=512m -XX:MaxNewSize=512m -XX:MaxPermSize=256m
    I have seen many forums where there are many reported issues with Concurrent Mark Sweep garbage collection with Sun JDK, but with different recommendations. But did not find any defnite recommendation. Please advice.
    - - Tarun

  • Weblogic 9.0 on WinXP 64bit with Sun JDK 64bit

    I installed Weblogic 9.0 on WindowXP 64bit version and it's fine with build in Sun's JDK and JRockit JDK but as soon as I switch to Sun's 64bit implementation of JDK (update 5) it fails to start.
    Am I doing something wrong or it is not compatible with 64bit JDK on windows platform?
    If so are there any plans to make it compatible with Sun's JDK 64bit version on windows platform in the near future, or any chance of 64bit JRockit JDK for windows?

    On 07/20/2015 06:35 AM, Itzhak Hovav wrote:
    > hi
    > [snip]
    > [root@p22 eclipse]# cat eclipse.ini -startup
    > plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    > --launcher.library
    > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
    >
    > -showsplash
    > org.eclipse.platform
    > --launcher.XXMaxPermSize
    > 256m
    > --launcher.defaultAction
    > openFile
    > -vmargs
    > -Xms40m
    > -Xmx512m
    > [snip]
    Try this: http://wiki.eclipse.org/Eclipse.ini. You should have read the
    sticky posts at forum's top for getting started help.

  • Access to weblogic 10.3 with  a jdk 1.3 client?

    We have an old software with a framework based on jdk 1.3 that we don't want to update.
    Is there a chance to connect to the Weblogic Server from that jdk 1.3 Application?!

    You may run into incompatible class versions issue. Basically you have altogehter 2 different JVMs. One for EJBs (utility framework as you defiined using 1.3). Another JVM is weblogic server using JDK 1.6 where you have Client to remotely access those EJBs methods. Going back, when you generate the client stubs and skeletons, and refer them on your client side, did you ran into any issues like with incompatible class versions.
    Goud

  • Problem with Sun RI and CORBA communication

    We are trying to access the service of a c++ server running on a diff host from an EJB deployed on the Sun RI over CORBA.
    That means the EJB acts as a client to the C++ server. We have tried the same from a simple servlet also.
    When we write a simple Java client to access the services of the server through CORBA , it works fine.
    But, when we put the same code in the bean or servlet and deploy from the App Serv, where the following call (_non_existent) fails and generates an exception.
    // Resolve the Root Naming Context
    org.omg.CORBA.Object root_nam_obj = orb.string_to_object(ior);
    NamingContext rootContext = NamingContextHelper.narrow(root_nam_obj);
    try {
    if (rootContext._non_existent() )
    catch (Exception e) { return " _non_existent failed for rootContext"; }
    Prior to this line, we are initializing the ORB like the following where "10.125.97.218" is the current host and 3700 is the port where orb-listener is running (taken from the file <install-dir>/domains/domain1/config/domain.xml
    String [] args = { "" };
    Properties props = new Properties();
    props.put("org.omg.CORBA.ORBInitialPort", "3700");
    props.put("org.omg.CORBA.ORBInitialHost", "10.125.97.218");
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, props);
    In domain.xml , there are 3 entries for iiop-listeners. Those were default and we didn't change them.
    <iiop-service client-authentication-required="false">
    <orb max-connections="1024" message-fragment-size="1024" use-thread-pool-ids="thread-pool-1"/>
    <iiop-listener address="0.0.0.0" enabled="true" id="orb-listener-1" port="3700" security-enabled="false"/>
    <iiop-listener address="0.0.0.0" enabled="true" id="SSL" port="3820" security-enabled="false">
    </iiop-listener>
    <iiop-listener address="0.0.0.0" enabled="true" id="SSL_MUTUALAUTH" port="3920" security-enabled="false">
    </iiop-listener>
    </iiop-service>
    What we have observed in the server.log is , when the client is run , it is trying to create an IIOP listener again and fails.
    [#|2005-12-14T16:42:03.422+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=11;|"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2661)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2681)
    at com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:167)
    at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:207)
    at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:224)
    at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:104)
    at com.sun.corba.ee.impl.oa.toa.TOAImpl.<init>(TOAImpl.java:78)
    at com.sun.corba.ee.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:65)
    at com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1536)
    at com.sun.corba.ee.spi.presentation.rmi.StubAdapter.connect(StubAdapter.java:164)
    at com.sun.corba.ee.impl.orbutil.ORBUtility.connectAndGetIOR(ORBUtility.java:825)
    at com.sun.corba.ee.impl.orb.ORBImpl.getFVDCodeBaseIOR(ORBImpl.java:901)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.addServiceContexts(CorbaClientRequestDispatcherImpl.java:737)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:227)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:127)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.non_existent(CorbaClientDelegateImpl.java:264)
    at org.omg.CORBA.portable.ObjectImpl._non_existent(ObjectImpl.java:137)
    at Test_Bean_N.createGen(Test_Bean_N.java:39)
    I think, we are doing something wrong with configurations. Can you please help.
    -- Pallab

    I am getting the same problem while looking up ejb
    jb not orb alone.can u describe how do i solve that.
    Please refer the problem reported by me in sun
    un software forums
    http://forum.java.sun.com/thread.jspa?threadID=694953&
    tstart=0
    Please reply me back.I need a solution very badly.he gave his reply already. you need to change the way lookup is being performed.

  • 10gR2 RAC with SUN V890 and SUN M5000

    I would like to build a 10gR2 2 node RAC with a SUN Fire V890 (8CPUs 1.8GHz UltraSPARC IV+) and a new SUN M5000 (8CPUs SPARC64).
    The CPUs of the systems are different but run the same OS binaries (Solaris for SPARC10 08/07).
    Is these configuration supportet?

    You can setup a cluster with different hardware architectures underlying to the cluster and you should not have any problem with the above configuration.

  • USB Device Redirection with Sun Ray and Windows XP Desktops (vSphere)

    Hello,
    i use Sun VDI 3.0 (vda_3.0_amd64.zip) in our environment.
    All connected Sun Ray's use Windows XP Desktops from VMWare vSphere.
    Now i have some additional USB Devices that we will use with the Desktops.
    But i'm Newbie at this topic.
    On of these devices are a OmniKey - Cardman 3121 this is known to work (http://www.sun.com/bigadmin/hcl/sunray/usb/readers.jsp).
    But which steps should I do that it's work?

    OK, the last message here was February 2008; it is now July 2008.  I just noticed that Microsoft is supplying a 64 bit version of their Windows Mobile Device Center 6.1 driver for Windows Vista (64 bit) at:
    http://www.microsoft.com/downloads/details.aspx?familyid=4F68EB56-7825-43B2-AC89-2030ED98ED95&displa...
    I just talked to a Palm salesman yesterday and he said all their phones still will not be synchronized with any Vista 64 Bit OS; their literature recommends 32 bit only. 
    I am contemplating upgrading my Treo 600 to a Treo 750 with Windows Mobile 6 Professional.  I am trying to figure out how to synchronize the software before I purchase anything.  I think now that Microsoft has solved the problem, not Palm and nobody in Palm or my cell phone provider (Rogers here in Canada) knows this yet.
    Does anybody have any experience with this ongoing 64 bit Vista problem and the Treo 750. 
    Also if I get positive answers here, where do I go next to figure out how to bring over my Palm Treo 600  data.  Since the operating system is different, I think I am stuck with exporting my contact addresses to a csv file.  I do not know how I would recover my mail.  I have not been using Outlook, just PalmOneMail v1.02a.
    Any help would be appreciated.
    Thanks,
    Rick Urquhart
    Post relates to: Treo 600 (Rogers)

  • Migrating issue from ibm jdk to sun jdk and from WAS5.0 to WAS6.1

    hi,
    while creating ConnectionFactory i am getting the following error:
    com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is java.lang.NoClassDefFoundError: Invalid Implementation Key, com.ibm.ws.transaction.NonRecovWSTxManager]
    Using SUN JDK5 , WAS6.1
    I have included com.ibm.ws.runtime_6.1.0.jar and com.ibm.ws.webservices.thinclient_6.1.0.jar in my buildpath but still i am getting the exception.
    Can anybody point out where i found this class?
    plz help,
    Thanks in advance...

    Hi,
    I have exactly identical probelm. Do you have any solution to it? Would you please share here.
    Thank you.

  • Need help with sun one and xml

    I have installed the Java Web Services Developer Pack. I am also using Sun One ide. I am trying to import the dom package. When ever i use "import org.", in the Sun One ide to lookup the packages, no packages come up for w3c.dom. I have tried to just use "import org.w3c.dom;", but i get an error when i try to instantiate a DOMImplementation. The JWSDP says that you do not need to register any classpaths. Any help would be much appreciated.

    I've noticed that no packages come up either.
    Try:
    import org.w3c.dom.*;
    to import all the classes, or be more specific:
    import org.w3c.dom.Node;
    (this is better coding style as you know exactly what classes you are using)
    Hope this helps
    Chalotte

  • Duplicate soap envelope with JRockit and not Sun JDK

    I have been installed Weblogic 10.3.6 with Sun JDK 1.6 on Windows 7 64 bit. This has worked great for a client sending in a soap request which is processed in my war as a 1.2 message. Debugging this shows the response is valid in my code, and works on Sun 1.6 fine.
    When I switched to JRockit [jrockit-jdk1.6.0_33-R28.2.4-4.1.0-windows-x64] I started to receive a duplicate soap envelope and soap body wrapped around the valid soap envelope which worked before.
    With the only change being switching to JRockit, this must be the cause of the addition of the duplicate the soap body and envelope. I searched this forum and Google and have not found a reason or solution.
    Any ideas on a solution?

    Seems to be the case that using MTOM stops this problem with JRockit. Strange but apparently true (so far).

  • Java Generics in Ejbs WebLogic 9.2 MP1 WindowsXP Sun JDK

    Hi guys,
    I tried to deploy our application on Weblogic Server 9.2 MP1 (Windows, Sun JDK) and during deployment I have this error see bellow.
    Can somebody tell me what is the problem with generics and EJB compiler?
    Is necessary to add any path or change any server settings?
    Thanks for help
    Robert
    location: interface
    ...daoadapter_DaoAdapter_rge4uk_Intf
    public void batchPersist(java.util.List<T> arg0);
    ^
    ...daoadapter_DaoAdapter_rge4uk_Intf.java:20: cannot find symbol
    symbol : class T
    location: interface
    2 errors
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:435)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:295)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:303)
    at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:309)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:497)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:464)
    at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:430)
    at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:752)
    at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:655)
    at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1199)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:354)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperatio
    n.java:189)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:15
    7)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(Deploymen
    tReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiv
    erCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCal
    lbackDeliverer.java:45)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    Thanks Matt for your answer.
    But I don't finish my testing :)
    I tried to deploy the same application on Weblogic 9.2 MP2 and then MP3 (sun jdk domain) and I didn't have problem with generics (application was correctly deployed and running).
    Then something was fixed in newer versions or may be bea guys support more then is in EJB 2.x specification.
    My next step, I'll try to deploy it on Jrockit domain and I give a note to conference what happen, may be it can help to somebody else.
    Thanks
    Robert

  • Problems with sun studio 12 in suse linux 11

    Hi.
    I installed Sun Studio 12 suse linux with no problems. However, the debugging modules (DBX) are not working any more. When I started Sun Studio, it gave a message about modules that could not be loaded in tha moment. I did not pay attention. But I noticed that all debugging options were disabled.
    Using the module manager, I saw the DBX module was not checked, and I could not change it. I was marked with a red X. So I thought to reinstall the application. However, the uninstall utility doesn't work either.
    According with the documentation, running ./uninstaller does it, but I get the following error message instead
    Exception in thread "main" java.lang.NoClassDefFoundError: uninstall_Sun_Studio_12/class
    Caused by: java.lang.ClassNotFoundException: uninstall_Sun_Studio_12.class
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    I tried to uninstall manually, and then execute installer, by using first the software manager in linux and deleting the producregistry file manually. It worked because I executed the installer. However, in Sun Studio IDE, debugging options are still not available despite I "reinstalled" the application. I checked the log files and they say the file uninstall_Sun_Studio_12.class could not be written.
    So my questions are:
    1. Is there any other way to repair Sun Studio? What could be the possible for this module to stop working?
    2. Does anyone have an idea of why the installer cannot write the uninstaller class?
    I found that perhaps problems regarding Java / Netbeans versions could be the problem, but the ones I have installed are those packages that were installed along with Sun Studio, and both are valid.
    Thank you very much.

    Perhaps you can simply delete the Sun Studio 12 installation tree, because it will not work on SUSE Linux 11.
    This OS is not supported, so any problems you see with SS12 on SUSE 11 will not be fixed.
    But we have a newer version, that should work better.
    You can try to download and install Sun Studio Express 2008/11 (extract pre-installed image from tar.bz2 file).
    Here is a pointer to the web page:
    http://developers.sun.com/sunstudio/downloads/express
    All you need is to provide a email address, and press "Download Now" button.
    You will see a page, that gives you 2 options to download Sun Studio Express 2008/11.
    Use "Option 2": Download Tarfile Installer
    Thanks,
    Nik

  • Uninstall SUN JDK 1.6_14 and install SUN JDK 1.6_18 for Weblogic

    My GridControl server has all of a sudden gone wild in consuming 100% of the cpu. The process was java.exe in the Middleware folder. Somebody suggested to verify the JDK and I indeed have an older version than the one recommended.
    Does anybody know where it is documented on how to uninstall and then reinstall SUN JDK 1.6_18 and have Weblogic still work afterward? (Win 2008 32 bit)
    I'd hate to reinstall the entire Gridcontrol 11g because I have the wrong jdk.
    Thanks.

    Hi,
    Uninstalling SUN JDK 1.6_14 from your Box is optional step....Most of the Servers are flexible enough ...they provide us the facility to change the JDK at any point of time...Without reinstalling the Product from the scrap....
    You can directly install SUN JDK 1.6_18 in your WebLogic Server Box. Then you need to make a small change in the *"<DOMAIN_HOME>\bin\setDomainEnv.cmd"* file ...to change the JAVA_HOME variable value...That's all.
    Next time whenever you will start your WebLogic Servers it will pick up the SUN JDK 1.6_18 version only.
    I am pasting few lines from *"setDomainEnv.cmd"*
    @REM *************************************************************************
    set WL_HOME=C:\bea103\wlserver_10.3
    for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi
    set BEA_JAVA_HOME=C:\bea103\jrockit_160_05
    <b><font color=red>set SUN_JAVA_HOME=C:\all_Jdks\JDK 1.6_18</font></b>
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Dwhat.is.your.name=Jay_SenSharma
    if "%JAVA_VENDOR%"=="BEA" (
         set JAVA_HOME=%BEA_JAVA_HOME%
    ) else (
         if "%JAVA_VENDOR%"=="Sun" (
              set JAVA_HOME=%SUN_JAVA_HOME%
         ) else (
              set JAVA_VENDOR=Sun
              set JAVA_HOME=C:\bea103\jdk160_05
    @REM We need to reset the value of JAVA_HOME to get it shortened AND
    @REM we can not shorten it above because immediate variable expansion will blank it
    set JAVA_HOME=%JAVA_HOME%
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic (WebLogic Wonders Are here)

Maybe you are looking for