Simple questio about env variable PATH

Hi all,
I have simple question:
I have installed J2sdk 1.4.0 on windows.It is OK.
Infact, if I digit java -version at cmd prompt the message is "1.4.0_01".It is OK.
But in the PATH enviroment variable there isn't c:\j2sdk1.4.0\bin.
Why the java command line work the same???
thanks!!

Hi,
The command line "java -version" work in any dir.
If I digit "javac" don't work. (and this it si correct,no?)

Similar Messages

  • Dynamic ORACLE_HOME in env variable PATH  not working

    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    user5716448 wrote:
    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.
    open Command Window & issue command belowecho %ORACLE_HOME%COPY  the results, then PASTE all back here                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • Very simple question about declaring variables

    if a create a new ' int ' as in the code below :
    static int counter;
    does the value of counter automatically default to ' 0 ' ?
    Does this also apply if i declare the var to be public, protected etc ( but not final )
    thanks

    Most languages will initialise an int to 0 if no value is specified but it is dangerous to rely on this as it is not always the case. It is therefore recommended as good practice that you always initialise your own variables to ensure they start with the value you wish and not something unexpected.
    Mark.

  • Very simple questio about JEditorPane

    I've got a html document that is downloaded from a webserver everytime you enter a correct url and i want it to display in mu JEditorPane. Th file is allways called tmp.html and the first time i run the program it works just fine.
    The second time however, the tmp.html has changed it's content (so my app downloaded the html file correctly) but the content of the JEditorPane however remains the same as with the first URL i entered. (Don't bother explaining me I can do everythin automatically with JEditorPane, i had to use sockets and http requests so i had to do that part manually). Here's my code:
    public void btngoMouseClicked(MouseEvent e) {
    conn=new HttpConnectie(txtlocatie.getText());
    txtlocatie.setText(conn.getnaam());
    conn.download();
    try{
    display.setPage("file:tmp.html");
    catch(IOException ioexception){
    System.out.println("can't display file" + ioexception.getMessage());
    I get no errors, only the new content isn't loaded into the JEditorPane and when i check the tmp.html file the content of the file really has changed. Maybe a display.repaint(); ?? I don't know
    Thanks in advance!

    yes repaint()

  • Env Variable setting for Oracle 11g windows 2003 R2

    Hi ,
    While installing the Oracle 11g on windows 2003 R2 getting error while running the prerequsite steps for installtion.failing the env variables path. Please guide us to set up the Environmental variable for the oracle 11g installation.
    Thanks..

    Tippu wrote:
    Hi,
    Oracle version Oracle 11.2.0.1
    Os Windows 2003 R2
    we had set some values. though we are getting the below errors.
    Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
    Expected Value
     : 1023
    Actual Value
     : 0
     List of errors:
    PRVF-3916 : Environment variable name "PATH" is not set on node "laxwzcl01"  - Cause:  Environment variable value could not be determined.  - Action:  Ensure that the environment variable is set and access permissions for the Oracle user allow access to read the environment variables. Restart the installer after correcting the setting for environment variable.It's like setting any other environment variable in Windows ...
    Right click My Computer, select Properties > Advanced tab > Environment variables button ...
    It should be self-evident from that point.

  • PATH env. variable value if Oracle is installed

    Hi,
    When Oracle is installed on the machine,in such case if we type on command prompt "PATH" and enter (on Windows machine) then we see the first value pointing to the ORACLE INSTALLED directory.I want to know, does this value persist till we uninstall Oracle from machine?
    What will happen if 2 applications want to share the same path, one application wants to chage the path value which will update ORACLE INSTALLED directory,and other one wants to keep it as it was earlier ?
    Waiting for reply.
    Thanks,
    Rupesh

    Agreed ! What I want to confirm is that the first value in PATH env. variable.
    Does it remain same always ?
    Like, if I type PATH on command line and press ENTER, I can see value of PATH variable as :
    D:\ORACLE\BIN;C:\PRO\BIN;D:\ABC\BIN;....; and so on.
    First value in above string is always ORACLE_HOME\bin directory. So, does it mean that, if Oracle is installed on machine, then PATH variable always sets it first place to search to ORACLE_HOME/bin directory ? is it so ? please suggest me.
    Thanks,
    Rupesh

  • Java ENV variable on Linux

    Hi ,
    I am new to linux can any one please guide me the steps to follow to update the ENV variable for JAVA_HOME in Linux.
    Thanks
    Raghav

    Hi.
    http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/ (set JAVA_HOME)
    http://stefaanlippens.net/bashrc_and_others (Bash: about .bashrc, .bash_profile, .profile, /etc/profile, etc/bash.bashrc and others)

  • Setting env variables through scheduler

    Hi All,
    I am trying to run a PERL script which makes database connection using DBI module through scheduler. The script works fine if I run it manually but from scheduler it fails because it can't fine libclnt.sh.10.1 lib file. I have LD_LIBRARY_PATH & LIBPATH set in my .profile and i guess when scheduler runs the external job, it creates a new shell but doesn't inherit the .profile settings (same as cron). I tried setting these env variables in PERL script itself but even then it's not working. I tried my theory by running this script from shell but without running .profile and it fail with exact same error.
    I want to know how you guys are handling this situation? How to set or call .profile from scheduler job so that all the env variable get set properly?
    OS: SUSE Linux
    DB: 11gR2
    Thanks
    Daljit Singh

    Thanks for the reply, I am doing the same. I have create a very simple script where I am setting all the env variables and I can see that those variable are getting set but still, it doesn't work. There is something special when we run .profile, that time along with env variables, something else also get set (which i dont know and trying to find out) which makes PERL to search the oracle library in oracle_home. I can see that by turning libraries debugging on. Here is a small snippet when .profile doesn't get execute but the env variables are set:
    25039: find library=libclntsh.so.10.1 [0]; searching
    25039: search cache=/etc/ld.so.cache
    25039: search path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64 (system search path)
    25039: trying file=/lib64/tls/x86_64/libclntsh.so.10.1
    25039: trying file=/lib64/tls/libclntsh.so.10.1
    25039: trying file=/lib64/x86_64/libclntsh.so.10.1
    25039: trying file=/lib64/libclntsh.so.10.1
    25039: trying file=/usr/lib64/tls/x86_64/libclntsh.so.10.1
    25039: trying file=/usr/lib64/tls/libclntsh.so.10.1
    25039: trying file=/usr/lib64/x86_64/libclntsh.so.10.1
    25039: trying file=/usr/lib64/libclntsh.so.10.1
    25039:
    install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
    at (eval 3) line 3
    Compilation failed in require at (eval 3) line 3.
    Perhaps a required shared library or dll isn't installed where expected
    at /home/oracle/scripts/test 9
    See it is searching for this lib in some system path and not using any of env variable. I want to know where it's getting this value from. Also if I run .profile then, this path changes and inludes what is mentioned in LD_LIBRARY_PATH and then it works.
    Thanks
    Daljit Singh

  • Env variable confusion - newbie install

    Hello,
    I have completed the installation sequence for db 10g (10.2.0.1) on RHEL 4.3 (x86_64). I am somewhat confused by this installation procedure wrt env. variables such as ORACLE_HOME, ORACLE_SID, ORACLE_BASE, etc.
    The pre-installation guidelines are clear in saying that .bash_profile (in this case) for user 'oracle' should NOT set these variables prior to installation:
    8. If the ORACLE_SID, ORACLE_HOME, or ORACLE_BASE environment variable is set
    in the file, then remove the corresponding lines from the file. (Preinstallation Tasks 2-41)
    User 'oracle's .bash_profile does not get updated during installation; subsequent login as 'oracle' shows that the env. variables are not set via other means. Is there a post-installation step I'm missing?
    Thank you again,
    Scott

    oraenv uses the ORACLE_SID to set the ORACLE_HOME and PATH - including making sure the ORACLE_HOME/bin is unique in the PATH
    But ... unless there is a database instance involved, ORACLE_SID is meaningless. It really does not have meaning until dbca is used to create a database, or the manual counterpart to dbca is invoked and oratab is updated.
    I have found there is a Catch-22 related to the oratab/oraenv which seems to have caused oraenv to be undervalued.
    However, due to the possibility of several ORACLE_HOMEs and several databases, since Oracle7 I have used the following sequence in my .profile
    export PATH=$PATH:/usr/local/bin # if not already done
    export ORAENV_ASK=NO
    ORACLE_SID=orcl
    . orenv
    export ORAENV_ASK=
    and then I am able to source /usr/local/bin/oraenv on demand to set te SID, HOME and PATH for any database.
    It's so useful, I add entries for each ORACLE_HOME into the oratab, regardless of whether it represents a database or not. For example, I will have entries for GridAgent, OMS, and so on.
    I can not explain why the oraenv is not better discussed in the documentation. It misses a major 'feature'.

  • A simple question about performance!

    Hi! I have a simple question about performance. Suppouse that you have a servlet or a class with DB access, and you need to use a value several times in that page. What is best, to assign the value from say, a resultset or a request.getParameter() to a variable or to call the resultset or the request every time you need to retrieve that value? Which option uses less memory, which is faster, etc.?
    Hoping the best fou u
    Raul

    If you need more values from a db, the best is to open some connections (connection pool) and use the for accessing the db.
    To get the data only once, open the connection, get the data, store the data whereever you want: variable (class), hidden control (if you want to send from one page to another by request) and close the connection as quicky as possible.
    The advantage of the first method is that the most time consuming activity (connections opening) is done only once.

  • How do I make a variable path in AppleScript?

    I'm mass distributing an application, and for the next update I want to add customization. My application currently make a folder in the "Documents" folder. The folder is called "MCL_CONFIG". What I need to do is make a unicode text file in "MCL_CONFIG". Since it's going to be used on many different computers the path to where I'm making the new file has to change depending on the user. How can I make a variable path to a non-directory? Here's the section of my code with the problem:
    tell application "Finder"
        if folder MCLConfig exists then
        else
            display dialog "Welcome to Mc Launcher! You will only recieve this message once, unless you delete the MCL_CONFIG folder." buttons {"Ok"} default button 1
            make new folder at New_User with properties {name:"MCL_CONFIG"}
        end if
    end tell
    It's not shown but I set the variable MCLCONFIG to (path to documents folder from user domain) & "MCL_CONFIG" as text.
    As a side note how do I make the code look like it does in applescript, here?

    You can do something like:
    set supportFolder to ((path to application support from user domain) as text)
    set appName to "My Spiffy App"
    set subFolder to "MCL_CONFIG"
    tell application "Finder" -- add application support folders if needed
      if not (exists folder (supportFolder & appName)) then
        make new folder at folder supportFolder with properties {name:appName}
        make new folder at result with properties {name:subFolder}
      end if
    end tell
    Edit: it is recommended that the folder in Application Support be named with your application's bundle identifier, but most just use the application name.

  • Get CGI env variables in a database procedure using new APEX Listener

    I already posted this question in the Apex Listener forum and still no replies after one week. The original post is here:
    Get CGI environment from APEX Listener within database procedure
    So please forgive me for posting in this forum as well, but there is a lot more activity here.
    I'd like to know how I can get the CGI environment from the APEX Listener. For example, if I want to write a procedure that inserts into a table the originating IP Address of the client making the web request, how do I get it?
    I am familiar with the Oracle Http Server and mod_plsql, and I know how to call OWA_UTIL.GET_CGI_ENV to get this sort of information. How do I do it using the APEX Listener?
    In particular, how do I do this when calling a custom procedure (not in an Apex workspace)? When I try it now, I get an error from owa_util. The cgi env seems to be empty or not initiated (owa.num_cgi_vars is null or zero).
    Specific set-up:
    I have a web server running the latest JDK, Glassfish, and 1.1.4 Apex Listener. It connects to another server running the latest 11.2 database. Apex is installed and running, but I am not really developing a traditional Apex application in a workspace. I mainly use it like you would use mod_plsql. In other words, I have custom pl/sql packages that are called directly via URL. The requests are forwarded by the listener to the database, and the DB executes the procedure and returns output using htp.p to send text back to the browser. And it works just fine for this purpose. But if I want to call GET_CGI_ENV to get information like the IP Address, web browser making the request, etc. I can't seem to get it with the OWA packages.
    Can anyone shed some light on this? If Apex Listener is not designed to do this, is there some kind of workaround I can use to forward this sort of information to the database for each request?

    I have not tried owa_util.print_cgi_env from SQL Workshop yet, as I have not created an APEX workspace. I have had no need for a workspace because of the way I am using APEX as a method for calling custom packages and stored procedures. In other words, I am using APEX strictly for the mod_plsql functionality. I just use it to forward requests to the database to execute pl/sql code, but I don't develop anything in APEX. My application is a web service with no screens and no direct user interface, which is why I did not need to create APEX forms. The front end is a mobile app that makes calls to the web service.
    But I have tried calling owa_util.print_cgi_env in one of my stored procedures and it returns no data, even when calling it from the web front-end.
    So I am beginning to believe that if the OWA toolkit works with APEX, then it must only be enabled when invoked within a workspace. Stand-alone procedures can be called via APEX, but apparently doing so does not initiate the CGI env variables. This set-up used to work under the OHS with mod_plsql. The embedded pl/sql gateway also works this way.
    Is there a procedure call that APEX is making to set the environment before each SQL Workshop request?
    My security model currently blocks access to all packages and procedures except for my custom packages. I am using the APEX Listener configuration to allow only the packages listed by name in a white list. But I thought I allowed all access when I first tried calling the OWA packages. I'll have to try that again.

  • Do I need to set  system env variables for weblogic and SOA server installation?

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

  • Simple question about mount and delay script

    Hello, I have a simple question about mounting volumes on start up.
    My computer wakes up auto - and then auto there are serveral applescript tasks (mount and start up programs)
    I use this script (daily) for serveral connections with external volumes I always need the connect to. ( In the script I use this code 3 times for other locations) I do this on start up.
    set Uname to "XXX"
    set Pword to "XXX"
    set someVolume to "afp://XXX.XXX.XXX.XXX/XXX/XXX
    mount volume someVolume as user name Uname with password Pword
    (same code for 2 other locations)
    When i do this on start up sometimes the script says there is no connection possible. I guess it's because on start up the connection isn't there. And 1 minute later when computer is total ready the connection is ok. When I run the script then It works. Just sometimes ( In the morning) 'It' want to connect but the script stops. When i do it manually(I run the script again) it works just fine.
    Is it possible that I need a delay? Can someone explain this?
    How would I make a delay handler for this script? Is that the best solution?
    Thanks in advance. This is something small i'm wondering about.
    Colin

    BTW, If you saved the script as an application +(and not as an application bundle)+ you could drop the script on to *Drop Script Backgrounder* (freeware).
    Then the script would run in the background, so, you wouldn't see it running in the Finder.
    <http://www.macupdate.com/info.php/id/7922/drop-script-backgrounder-x>
    Tom

Maybe you are looking for