How to set jdk1.6 path in Solaris Sparc 64-bit machine

Hi All,
I am very much new to Solaris and do not know whether this is the right place to put my question.
Already jdk1.5 installed in the machine (it came with the Operating System.)
I have installed the JDK 1.6 and set the path in .profle file as
export JAVA_HOME=/usr/JDK1.6
export PATH=$JAVA_HOME/bin:$PATH
but still the default environemnt path is pointing to the older version (jdk1.5).
Please suggest me to set the path to newer version.
Any help regading this will be highly appreciated.
Thanks in advance
Sagar

http://java.sun.com/docs/books/tutorial/essential/environment/paths.html

Similar Messages

  • How to set the PATH in Terminal?

    As a newbie to Bash and the Terminal, in connection with installing a new version of Ruby and various add-ons, I have been messing around with changing the PATH via various methods I've found on the internet, and trying to add a new directory to my PATH. Unfortunately, I cannot figure out how to set the PATH correctly. Here is what I understand so far:
    1. Bash first looks to ".bash_profile" in the home directory for PATH settings.
    2. If none, Bash then looks to ".bash_login" for PATH settings.
    3. If none, Bash then looks to ".profile".
    4. If none, Bash then looks to a system file in "/etc/profile" for default PATH settings.
    5. For a new shell after login, Bash looks for a ".bashrc" file.
    I cannot find any of the above files (I have Finder set to show hidden files already). Somehow, following some instructions from the internet without really knowing what I was doing over the past week I have set my PATH as follows:
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/*****/src:/usr/X11/bin
    but I cannot find the file that is setting this PATH. I have tried creating a new ".bash_profile" shell file and putting it in various places such as "/bin" and "/usr/bin" but the file is not being read.
    * As a temporary workaround I tried using the command "source .bash_profile" upon login to set the PATH using the .bash_profile file that I created, but it does not work.
    * I am able to temporarily alter the path using the command "PATH=/usr/local/bin:$PATH" but this only lasts for an active shell; when I close out and reopen a new shell, it reverts to the default.
    So my questions are:
    Is it correct that there is a "/etc/profile" somewhere that is setting the default PATH? If so where is it? Should I alter it, or create a new ".bash_profile" somewhere to set the PATH? If not, where is my PATH being set? If I should create a new ".bash_profile", what exactly should go in it?
    Thanks in advance for any assistance.

    ... I created a new ".bash_profile" file directly under my home directory and it worked like a charm. Below is the content of the file:
    "PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/"
    What are the "..."'s? Is that just you, or is the contents of the file actually inside of double quotes?
    is there an 'export PATH' also in the file? As in
    PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/
    export PATH
    And did you either restart your Terminal session so your .bash_profile was read, or issue a 'source .bash_profile' command to execute the .bash_profile after your change?
    The only remaining problem is that from the home directory, I'm unable to directly run programs in the above-designated subdirectories (without first navigating to the subdirectory containing the file. Is there something wrong with the syntax or order of the directories I put in the path?
    For example: there is a file called "newprogram.rb" in the "Ruby" directory listed above. I should be able to execute it from the home directory using "ruby newprogram.rb" but it does not work. The same command works fine from within the "Ruby" directory.
    Does the 'ruby' command search PATH to find its scripts?
    Have you read the "man ruby" man page to see if it talks about PATH?
    A common Unix feature is that programs and scripts with the executable bit set, and are located in a PATH directory, will be run if you just type their names.
    For example, if the first line of newprogram.rb script starts with
    #!/usr/bin/ruby
    and if the script is executable
    chmod +x newprogram.rb
    And if it is in a directory in PATH, then just typing
    newprogram.rb
    should run your perl script using /usr/bin/ruby. If you want to use a different version of Ruby, then change the #! line so it point to your version of Ruby. Or if your version of Ruby is found earlier in PATH then the /usr/bin/ruby, you can use
    #!/usr/bin/env ruby
    as your script's first line which will search PATH for 'ruby' and use the first one it finds.
    Message was edited by: BobHarris

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • Setting up LOCALE in solaris sparc 10

    HI,
    Please let me know how to set the locale in solaris 10, whether it need to be set at a session level or OS level to install BO XI 3.1 SP3?
    What is the language (LANG) to set if LC_ALL is en_US.UTF-8.
    Thanks in Advance,
    Mani

    You have same post in another forum. I answered this question in the other post. Please refere it there:
    http://forum.java.sun.com/thread.jspa?threadID=5265020&tstart=0

  • Link to downoad the OBIEE software for Sun Solaris sparc 64 bit

    Guys,
    Help me out to know from where i can get software of OBIIEE(Siebel) for installation on Sun Solaris sparc 64 bit.? Its's urgent
    reards
    Prashant

    Such specific software is not available on OTN, you have to contact an Oracle sales representative.
    Werner

  • When is OSM 7.0 available on Sun Solaris Sparc 64 bit ?

    Hi
    Does anyone know when is version 7.0 of OSM will be available for download for Sun Solaris SPARC (64bit) ?
    Currently, only version 6.3.1 is available from edeliver.oracle.com for Sparc 64bit, as far as I can see, I can only find "Oracle Communications Order and Service Management 6.x Media Pack".
    For Linux, version 7.0 was made available on edelivery.oracle.com early this year.
    Regards
    Alf Hogemark

    It is available now.
    OSM 7.0 for Solaris Sparc 64-bit and for HP-UX Itanium were both made available on Oracle E-Delivery (www.edelivery.oracle.com) as of earlier this week.

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • How to set dynamic path in forwards action

    Hi All,
    i have a requirement to set my path dynamically in forward action
    suppose i have
    @Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  "/output1.jsp") })
         public Forward testIpc1() {
              Forward forward = new Forward("success1");
              System.out.println("IN PageflowportletController :: testIpc1() method called");
              return forward;
    Here the path="/output1.jsp" is hardcoded.is there any way to set the path dynamically in forwards action
    @Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  dynamic_path) })
    how do i get the dynamic path set in my forwards action.
    Suggestions provided would be really helpful
    Thanks,
    Deepak

    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

  • How to set a proxy in solaris 11

    Hi
    After long research, I found the below syntax for setting up proxy in Solaris 11. And this works as well.
    But what will be the syntax if my passwd contain @ symbol, generally most of the passwords contains @ symbol, but this is not working if the password has @ symbol, it's considering as the other domain. I reset my password plain (without any symbol) and working fine.
    export http_proxy="http://username:password@proxy_url"
    username:- username
    Password:- Passwd@123
    proxy usr:- proxy.company.com
    How can I sent a proxy for above values?

    i used this to download using pkgutil by passing proxy
    export http_proxy=http://proxyusername:'password'@test.com:portnumber
    ex::
    from bash/ksh shell i used to tun this when i need to run any wget or curl from solaris machine
    export http_proxy=http://muvvas :'abc&@xyz'@test.com:8080
    export https_proxy=http://muvvas :'abc&@xyz'@test.com:8080
    export ftp_proxy=http://muvvas :'abc&@xyz'@test.com:8080

  • How to set local path for load library

    Hi,
    How do i set local path for native dll as i dont want to set the path in the environment variable.
    can i do like this
    System.loadLibrary("c:\abc");
    Thanks

    I believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
    Failing that.... maybe you can add -Djava.library.path=
    to your command line to explicitely override the path set ?
    regards,
    Owen

  • Set the PATH permanently windows vista 32-bit

    I need to set the PATH variable permanently for running JDK without specify the full path to the executable every time with windows vista 32-bit but I don't know how to do it. Someone can help me?
    I tried what this site said but it doesn't work (or I do it wrong)
    http://java.sun.com/j2se/1.5.0/install-windows.html

    hi,
    via setting environment variables
    steps for windows 2000, but you to try the same in vista also, may be steps only differ,
    place your cursor on my computer -> right click -> properties -> advance -> environment variables -> system variable -> path->edit
    add " ;drivename:\path "
    ex:
    ;c:\jdk1.5.0\bin

  • When will 11.1.0.7 will be available for Solaris (SPARC) (32-bit)?

    Hi
    Does any of you know when 11.1.0.7 for "Solaris Operating System (SPARC) (32-bit)" will be available for download on http://www.oracle.com/technology/software/tech/oci/instantclient/index.html ?
    The reason for my question is that 11.1.0.6 contains a bug (at least on Solaris) causing it to reserve approx 180M swap for each client started!
    Regards
    Mads

    Just became available on http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/solsoft.html

  • Migrate from 11.5.9 to 11.5.10.2 on Sun Solaris Sparc(64-bit) Platform.

    hi,
    Plz tell me the mandatory steps to perform the migration and also tell me from where to get the media pack and what is the total size of that media pack,
    i m looking forward for ur support,
    thanks

    thanx for ur reply,
    i already logged an SR and they provide the following details of media pack :
    E B24290-01 Oracle Applications 11i Release 11.5.10.2 for Solaris Operating System
    (SPARC 64-bit) Rapid Install RDBMS - Disk 1
    E B24291-01 Oracle Applications 11i Release 11.5.10.2 for Solaris Operating System
    (SPARC 64-bit) Rapid Install Databases - Disk 1
    E B24292-01 Oracle Applications 11i Release 11.5.10.2 for Solaris Operating System
    (SPARC 64-bit) Rapid Install Databases - Disk 2
    E B24293-01 Oracle Applications 11i Release 11.5.10.2 for Solaris Operating System
    (SPARC 64-bit) Rapid Install Databases - Disk 3
    E B24298-01 Oracle Applications 11i Release 11.5.10.2 for Solaris Operating System
    (SPARC) Rapid Install Tools - Disk 1
    E B24299-01 Oracle Applications 11i Release 11.5.10.2 for Solaris Operating System
    (SPARC) Rapid Install APPL_TOP - Disk 1
    E B24300-01 Oracle Applications 11i Release 11.5.10.2 for Solaris Operati
    ng System
    (SPARC) Rapid Install APPL_TOP - Disk 2
    is this all we need to download , iwant to know the total size of all this .
    waiting for ur reply

  • OEPE Install for Solaris Sparc 64 bit

    Hello Experts,
    OEPE (Oracle Enterprise Plug-in for Eclipse) issue....
    We have installed the below @ Sun Solaris 10, Sparc 64 Bit.
    Web Logic 10.3.6
    SOA 11.1.1.6.0
    AIA 11.1.1.6.0
    trying to install OSB (Oracle Service Bus) and it asks about the OEPE Install location and gave an error.
    INST-07246 -- Enter a Valid value for OEPE Home location..
    We have NOT installed OEPE, because it is NOT available for the version and the platform we have.
    The OTN doc says as below:
    Oracle WebLogic Server 11gR1 (10.3.6) + Coherence - Package Installer Size: .99 GB, Check Sum: 3179053739
    This download provides a WebLogic Server generic installer. This installer does not include a JVM/JDK or Oracle Enterprise Plug-in for Eclipse, these must be installed separately.
    Question(s):
    1) Where can I get the OEPE for Solaris 64 bit and SOA 11.1.1.6.0?
    2) Any other workaround for the OSB install issue??
    Thanks a lot
    Rgds
    Natrajan

    Hi Natrajan,
    I don't think there is a Oracle packaged OEPE for Solaris 64... There is a Linux 64 though, but I don't think that is what you looking for...
    Here you can see the available packages
    http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html
    What you can do is to install Eclipse for Solaris... and then go to the link above and download a package "OEPE Plugins Only" and apply the plugins to your Eclipse
    http://archive.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/solPlatform.php
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Essbase Client 32 bit on the Solaris SPARC 64 bit Cognos server - Need help

    Hello All,
    I have a SunSolaris SPARC 64 bit OS on which i have the 32 bit Cognos 8.4.1 installed.
    I now wanted to install a 32 bit Essbase client on this server.
    can anyone please let me know if there exists a 32 bit essbae client which can be installed on the SunSolaris SPARC 64 bit OS ?
    Thanks you in advance.
    MS

    I will asume the latest version of the essbase client
    "EPM System Installer installs both 32-bit and 64-bit Essbase Client on a machine with a 64-bit operating system."
    Once it is installed you may need to update the environment variables to point to the 32bit client.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Suppress an error message while creating a return PO ( ZRO type) (ME21n)

    Hello All, I have to write a code in order to suppress the below message while creating a return purchase order (of type ZRO) , transaction ME21n  after entering the purchase organization, purchase group, the vendor & the material no :- "You have no

  • Issues while upgrading to 9.1.0.2

    hi gurus, i am new in oim, i am trying to upgrade to 9.1.0.2 from 9.1.0.1 It is set up on Oracle database 10.0.2 and wls 10.3 when i am trying to Load Metadata into the Database when i am runing the script LoadXML_XACM making changes as mentioned in

  • Connectivity and FCP

    Up to this point in my FCP experience, I have used nothing but Log and Capture with my Canon NTSC ZR60 mini cassette camcorder which has worked great with FCP.  I am on the verge of purchasing a new Canon HD camcorder and am worried about connectivit

  • Photoshop CC 2015 Keeps Failing to Install: Problem With a Patch

    Hi all, I tried to install Photoshop. I got pretty far but then the installing stopped and bright orange letters popped up saying Installation Failed or something similar to that. I clicked on the Learn More link next to the message. It said  there w

  • Creating a pre-configured SQL instance installation file

    Hi, Is it possible to create a pre-configured SQL instance installation file? I want to pre-configure authentication mode, sa password, collation etc so that users will just need to run the .exe and everything will be done for them. At the moment use