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)

Similar Messages

  • Error in the latest Java comm api for Linux

    installed latest Java comm api for Linux, tried test application for the Sun package:
    $ java SimpleRead
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at SimpleRead.main(SimpleRead.java:67)
    Caused by: java.lang.NullPointerException
    at javax.comm.CommPortIdentifier.findConfFile(CommPortIdentifier.java:199)
    at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:117)
    ... 1 more
    What deis this message mean? How to make you serial port support work?

    and what does this error message mean??
    The package was installed accordingly to "Java(tm) Communications API Linux Installation Instructions":
    $ls /usr/lib/libLinuxSerialParallel.so
    /usr/lib/libLinuxSerialParallel.so
    $env|grep CLASS
    CLASSPATH=<..skipped..>:/opt/commapi/jar/comm.jar:/opt/commapi/jar/commtest.jar
    $ ls /opt/jdk1.5.0_04/jre/lib/javax.comm.properties
    /opt/jdk1.5.0_04/jre/lib/javax.comm.properties
    What else does it need?

  • 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

  • How to access a JAVA Script variable in JSP Code

    How to access a JAVA Script variable in JSP Code. I have been unable todo this.
    Plz Suggest a way.
    Thanks
    Soumya

    try to do this code
    String s=request.getParameter("javascriptvariablename");

  • 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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Java Not Displaying Correctly - Linux

    When I run a Java JAR file in linux, the program loads up fine but I cannot see anything. All I do see is the outline to the GUI and a bunch of grey inside. If I click on the X I can partially see the popup asking If I am sure and thats it. Not sure what is going on, I have tried it with different versions of java, jre and jdk. Any help is appreciated.
    Thanks,
    Patrick

    If you are using swing component. Then you require javaplugin 1.3 above is required in your browser. Check your browser if you are openning the GUI in netscape of linux you will be having this problem because netscape 4.7 by default will be having javaplugin 1.1.5 it will not allow you to execute GUI. So you need to update the plugin to 1.3 above. I think your problem will be solved once you change your plugin.
    ravi

  • Java Sounf Api in Linux

    Hi!
    I have a question about Java Sound Api on Linux! I have servlet that used JSA. Under Windows OS it working fine, but under Linux i can't record sound and playback it!
    Anyone have experience with Sound Java Api on linux???
    Sorry for my English!

    look at http://www.rxtx.org/

  • Returning/passing Java script variable/value to PL/SQL environment

    Hi,
    Can someone give me a sample code about how to return a Java script variable to PLSQL environment?
    for example, I have a javascript function that returns timestamp in milisecond, I then want to write PLSQL code to call this java script function and save its value in a number-typed plsql variable for further calculation, I dont know how the two scripting language communicate.
    Thank you very much
    Binh
    null

    This is quite simple.
    I assume that you are able to define html form side through pl/sql. Suppose your new pl/sql value is v_time then in the procedure that you write include one more statement
    htp.p('<Input type=hidden name="v_time" value="">');
    and also in the form invocation,
    htp.p('<form name=app method=post action="time_handler" onSubmit="return false;">');
    and to the end you must be having a submit
    to it attach a onClick function that calls
    simply our validate function..
    eg htp.p('<Input type=submit value="process"
    onClick="validate();">');
    Include in the head portion
    the following script using htp.p procedure
    function validate()
    app.v_time.value=<calculated value>;
    return app.submit();
    Hope this helps.
    Nat
    null

  • JAVA ENVIRONMENTAL VARIABLE AND PATH SETTINGS

    Hi all,
    I am having a pecuilar problem with java environment variables and setting the path.
    I am trying to install and check the instalation using some pre-provided batch commands from Open GTS.
    The error log is as below .
    ** Found 2 Error(s)!
    1) The 'PATH' environment variable points to the JRE, rather than the JDK.
       [Reason: The 'PATH' environment variable points to the JRE (Java Runtime
         Environment), rather than the JDK (Java Developer Kit).  The JDK already
         contains the JRE, so a separate JRE insallation  is not necessary.]
       [Fix: Set the 'PATH' environment variable to point to the JDK installation bi
    n
         directory.]
    2) 'JAVA_HOME' does not match the Java installation 'PATH' directory 'C:\Program
    Files\Java\jre6'.
       [Reason: The version of Java referenced in the executable 'PATH' environment
         variable does not match 'JAVA_HOME'.]
       [Fix: Make sure both the 'JAVA_HOME' and 'PATH' environment variables point t
    o the
         same installed JDK.]
    No warnings reported
    Further more these may help understand better
    C:\Dush\Workspaces\JavaWorkspace\OpenGTS>echo %JAVA_HOME%
    C:\Program Files\Java\jdk1.6.0_03
    C:\Dush\Workspaces\JavaWorkspace\OpenGTS>path
    PATH=C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C
    :\WINDOWS\System32\Wbem;C:\Program Files\apache-ant-1.7.0\bin;C:\Program Files\J
    ava\jdk1.6.0_03\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Dush\Workspac
    es\JavaWorkspace\OpenGTS\bin;
    C:\Dush\Workspaces\JavaWorkspace\OpenGTS>The resolution suggests that the path point to the same instance of jdk installation but that has already been done,
    I do not understand from where does the
    C:\Program Files\Java\jre6 path get set.
    Please suggest..

    dushdushyant wrote:
    ** Found 2 Error(s)!
    1) The 'PATH' environment variable points to the JRE, rather than the JDK.
    [Reason: The 'PATH' environment variable points to the JRE (Java Runtime
    Environment), rather than the JDK (Java Developer Kit).  The JDK already
    contains the JRE, so a separate JRE insallation  is not necessary.]
    [Fix: Set the 'PATH' environment variable to point to the JDK installation bi
    n
    directory.]
    2) 'JAVA_HOME' does not match the Java installation 'PATH' directory 'C:\Program
    Files\Java\jre6'.
    [Reason: The version of Java referenced in the executable 'PATH' environment
    variable does not match 'JAVA_HOME'.]
    [Fix: Make sure both the 'JAVA_HOME' and 'PATH' environment variables point t
    o the
    same installed JDK.]
    No warnings reported
    C:\Dush\Workspaces\JavaWorkspace\OpenGTS>echo %JAVA_HOME%
    C:\Program Files\Java\jdk1.6.0_03
    C:\Dush\Workspaces\JavaWorkspace\OpenGTS>path
    PATH=C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C
    :\WINDOWS\System32\Wbem;C:\Program Files\apache-ant-1.7.0\bin;C:\Program Files\J
    ava\jdk1.6.0_03\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Dush\Workspac
    es\JavaWorkspace\OpenGTS\bin;
    Put the java home bin folder on the path before %SYSTEMROOT%\system32
    set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
    set PATH=%JAVA_HOME%\bin;%PATH%

  • Problems with OMB+ (OWB 10.2.0.2 Windows client) - ORACLE_HOME env variable

    Hi.
    I am trying to use the OWB_DEMO files found on the website. The OWB client is installed on a Windows XP SP3 laptop; when I try to use the OMBINSTALL OWB_TARGET_USER, I'm getting this error:
    ORACLE_HOME(or OWBCC_HOME for Clearcase) environment variable is not set up yet. Please set up first.
    I can't understand why I'm getting this error, because in the batch file setowbenv.bat, called by the OMBPlus.bat, all the env variables are correctly set and then passed to the JVM through the -D option.
    Could anyone help me to understand where is the problem, please?
    Thanks.

    This is bug 5853639, it is fixed in 10.2.0.3
    As a workaround enter "set OWBCC_HOME=<YOUR OWB HOME>" in setowbenv.bat.
    Regards,
    Robert

  • Passing importing parameter in  ABAP to  java script variable

    Hi Experts,
    I am calling a ABAP function module in javascript.Now how can I take importing parameter in  ABAP to java script variable. Because I need to give alert using the improting Paramter value...
    Thanks in advance..
    RR

    to pass ABAP variable value to javascript variable the syntax is
    var myjsvariable = "<%=abapvariable%>";
    Edited by: Durairaj Athavan Raja on Jul 29, 2009 2:39 PM

  • 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.

  • FTP link for SAP NetWeaver 7.0 - Java Trial Version on Linux - VMware Editi

    Is there a FTP url I can use to download SAP NetWeaver 7.0 - Java Trial Version on Linux - VMware Edition?
    TIA

    Hello,
    I've been trying to download the files several times as well. Each time the files (all 3) appeared currupt too. Has anybody been able to download the files in the last 2 weeks?
    Or any other tips?
    Thanks,
    Harmen

Maybe you are looking for

  • Problem with Jcheckbox

    Hi friends; I need a small help. I want to change the property of a button based on the checkbox selected or deselected value. My problem is : if checkbox is selected then disable the button else if checkbox is deselected then enable the button. if(c

  • Splash screen in developer6.0

    hi everybody! please help me out in creating a splash screen as that u do in vb.is it possible to do it in d2k.if so hou.please let me know.thanks in advance

  • How to Flush DNS Cache in Mavericks 10.9.3

    So I have seen references to the following when searching for a cmd to flush DNS sudo killall -HUP mDNSResponder and sudo dscacheutil -flushcache Which one is proper for Mavericks 10.9.3?

  • ICloud rules no working after down time today...

    All the rules I have set-up stopped working this morning while the iCloud servers are down.  I delted ALL of them and started adding them back - However, now they dont work at all.  All the rules I enter are being ignored?  I'm doing exactly what I h

  • All but CONTACTS restored. Help!

    this is strange. i had synced my phone monday night. on tuesday my phone died and i had to get it replaced with apple they gave me an activated and blank phone, i went home and went to restore it from the backup and after all was said and done it was