How to set Environment variables........???
I installed j2sdk in my system.....
i want to know how to set env variables...?
Which ones, what for? Did you check whether some are already set?
Forget about the classpath variable, if you want to add that. Use the command-line arguments.
And which OS?
Similar Messages
-
How to set environment variables in WL ?
Hi,
How to set environment variables in WL ?
Thanks,
SriviHi,
You can set the environmet variable in Weblogic by using the below commands
setWLSEnv.cmd/sh ==>Set the CLASSPATH to include the WebLogic Server classes.
Overview of WebLogic Server Domains
or you can use to set the Environment variable along with domain specific varables using the SetDomainEnv.cmd
To run SetDomainEnv.sh in Linux please use
. ./setDomainEnv.sh it require two dots (Dont miss it )
http://docs.oracle.com/cd/E28280_01/web.1111/e13749/weblogicserver.htm#ADMRF205
Hope it helps -
How to set environment variable ORACLE_HOME ?
Hi
I trying to install SAP Solution manager 4.0 SR3:
OS: Linux RHEL4u4
DB: Oracle
SAPinst now stops the installation.
To proceed with the installation, install the Oracle database as follows:
1.Log in as user orassm.
2.Set the DISPLAY variable.
3.Change to directory /oracle/stage/102_32/database/SAP.
4.Start './RUNINSTALLER'.
After you installed the Oracle database software, proceed with the database instance
installation by choosing 'OK' in this dialog box.
./RUNINSTALLER
oracle_stage is not set (OK)
oracle_base is not set (OK)
oracle_home is not set (OK)
oracle_sid is not set (OK)
oracle_home_name is not set (OK)
oracle_inst_group is not set (OK)
from_location is not set (OK)
tmp_netca_file is not set (OK)
tmp_dbca_file is not set (OK)
Working in /oracle/stage/102_32/database/SAP ...
The environment variable ORACLE_HOME is not set! abort ...
How to set environment variable ORACLE_HOME ?
Regards
Erici
Switch shell to bash:
orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/bash
[root@csp-p-sm00 ~]# su - orassm
[orassm@csp-p-sm00 ~]$
But when try to run ./RUNINSTALL
[orassm@csp-p-sm00 SAP]$ ./RUNINSTALLER
oracle_stage is not set (OK)
oracle_base is not set (OK)
oracle_home is not set (OK)
oracle_sid is not set (OK)
oracle_home_name is not set (OK)
oracle_inst_group is not set (OK)
from_location is not set (OK)
tmp_netca_file is not set (OK)
tmp_dbca_file is not set (OK)
Working in /oracle/stage/102_32/database/SAP ...
The environment variable ORACLE_HOME is not set! abort ...
Additionaly I've post csh.cshrc and csh.login
/etc/cshrc
csh configuration for all shell invocations.
by default, we want this to get set.
Even for non-interactive, non-login shells.
[ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]
if $status then
umask 022
else
umask 002
endif
if ($?prompt) then
if ($?tcsh) then
set prompt='[%n@%m %c]$ '
else
set prompt=\[`id -nu`@`hostname -s`\]\$\
endif
endif
if ( $?tcsh ) then
bindkey "^[[3~" delete-char
endif
setenv MAIL "/var/spool/mail/$USER"
limit coredumpsize 0
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r $i ) then
source $i
endif
end
unset i nonomatch
endif
/etc/csh.login
System wide environment and startup programs, for login setup
if ($?PATH) then
if ( "$" !~ /usr/X11R6/bin ) then
setenv PATH "$:/usr/X11R6/bin"
endif
else
if ( $uid == 0 ) then
setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
endif
endif
setenv HOSTNAME `/bin/hostname`
set history=1000
if ( ! -f $HOME/.inputrc ) then
setenv INPUTRC /etc/inputrc
endif
Regards
Eric -
How to set environment variables using java program
Hi all
I want to set environment variables on windows 98/200/xp system, such as path and classpath using a java program.
How to do this using a java program.
Any body plz helppppppppp.#1 05-02-2003, 07:38 AM
Goodz13 Join Date: Jan 2002, Posts: 985
Location: Halifax, NS, Canada
Reputation:
Java FAQ's and tutorials
Java FAQ's
Path and ClassPath:
PATH
In Windows 9x you would set it up in the autoexec.bat file
ie.
SET PATH=%PATH%;c:\jdk1.4.2\bin\;
where c:\jdk1.4.2\ is the path where you installed Java.
In Windows 2000 and XP
Right click on My Computer->Properties->Advanced Tab->Environment Variables... Button.
If you see a PATH in System Variables, click that and edit it. If you don't, you will need to create a new System variable.
It should look something like this:
%SystemRoot%\system32;%SystemRoot%;c:\jdk1.4.2\bin\;
Any querry email me to [email protected]
Answer by
Rajasekhar Goli
DS UNICS Infotech -
How to set environment variables permanetly?
I have installed oracle apps R12 on Oracle Enterprise Linux 5.3 successfully. When i run the file APPS<context_name>.env as oracle user(the one who installed software), the variables are set,,,but when i logout and login again,,,,,i dont see $ORACLE_HOME, $APPL_TOP etc......so please can someone tell me how to set the variables permanently..
thanksHi,
set the env file in profile of unix user.
if your shell is bash shell, then edit the user .bash_profile with env file. If your's is bourn shell, edit the user .profile
for example,
i have PROD as the database SID
/oraprod and /applprod are the base mount points of database and application tiers respectively.
erpserver is the hostname of R12 (single node)
(1) Database Tier:
login as oracle user
$vi .bash_profile
. /oraprod/db/tech_st/10.2.0/PROD_erpserver.env
save the file
(2) Application Tier:
login as applmgr user
$vi .bash_profile
. /applprod/apps/apps_st/appl/APPSPROD_erpserver.env
save the file
------ -
How to set environment variable?
Hi,
I just succeeded starting up an external executable by using nativeprocess.
Now I have to set the portnumber as an environment variable.
After setting this portnumber, I can send queries to the executable.
But I don't now how to set this environment variable.
You can see my try in bold:
Starting the executable (an extract of the code):
public var portnumber;
file = file.resolvePath("C:\\Program Files\\CM Synergy 6.3\\bin\\start_dbase.exe"); #start executable
process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, getportnumber); #get portnumber as output of the executable
The next step is to define the variable portnumber:
file = file.resolvePath("C:\\WINDOWS\\system32\\cmd.exe");
processArgs[0] = "/C";
processArgs[1] = "set";
processArgs[2] = "portnumber=";
processArgs[3] = portnumber;
When I try to print out all environment variables, portnumber is not in:
file = file.resolvePath("C:\\WINDOWS\\system32\\cmd.exe");
processArgs[0] = "/C";
processArgs[1] = "set";
If I replace the last executable with my real command (running the query), the executable is giving the error that my portnumber is not set.
Is it possible? I have also tried it with setx.exe. Even running a python script where I set os.environ is not working.
I have the feeling that the command is executed but that the variable is not remembered for the next executable.Hello Martin,
Thanks for your input. I have tried what you suggested but it didn't work. I will post my source code. Perhaps I'm doing something wrong. After setting my variable portnumber, I would normally run a query. Instead of running the query, I'm writing out the environment variables. Unfortunately, portnumber is not in the list . I also tried using "setx" insetad of "cmd.exe set" but without any difference.
public var portnumber;
public function run_query():void
var file:File = new File("C:/WINDOWS/System32/cmd.exe");
var si:NativeProcessStartupInfo = new NativeProcessStartupInfo();
si.executable = file;
var processArgs:Vector.<String> = new Vector.<String>();
processArgs[0] = "/C";
processArgs[1] = "set";
nativeProcessStartupInfo.arguments = processArgs;
var process:NativeProcess = new NativeProcess();
process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
process.start(si);
public function set_portnumber():void
var file:File = new File("C:/WINDOWS/System32/cmd.exe");
var si:NativeProcessStartupInfo = new NativeProcessStartupInfo();
si.executable = file;
var process:NativeProcess = new NativeProcess();
process.start(si);
process.standardInput.writeUTF("set portnumber="+portnumber+"\n")
setTimeout(run_query, 1000);
public function onOutputData(event:ProgressEvent):void
var process:NativeProcess = event.target as NativeProcess;
textReceived.text += process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable) + "\n"; -
How to set environment variables for Tomcat on mac osx 10.8.5
How do I set up my environment variables - JAVA_HOME and CATALINA_HOME on my iMac running mac osx 10.8.5?
You need to create a setenv.sh script in the tomcat bin directory. The link is an example that you will need adjust- http://www.unidata.ucar.edu/software/thredds/current/tds/tds4.2/tutorial/Getting Started.html
-
From Where should i download Servlets and how to set Environment variables?
Hi,
I want to download the Servlets Kit for my development of application,but couldnt find it.I found a zip file containing all class files.If that is the correct one,then how should i set my environment variables?
thanks
raoYour files should come in a folder with the name "Javax" and subfolders right?
What you can do is to paste the file "Javax" in your folder of your JDK installation.
For example, I have installed my JDK in C:\Java\jdk1.3
I added one new folder in C:\Java\jdk1.3 called classes.
Then I would put the Javax folder in classes.
PS : We add one new folder called classes so that in future when you want to add new classes you can just into this folder.
Then in your enviroment settings, simple point to C:\Java\jdk1.3\classes;.;
This works for me. Hopefully you will no problems!
jing
170902 -
How to Set Environment Variables in Windows
Hi Guys,
You know that we can retrieve the environment variables using System.getProperty("JAVA_HOME"); like this. It is easy.
Can anyone tell me how to create an environment variable using System class or is there any alternate java API to create environment variable. Please let me know.
My requirement is that I want to create the environment variable as follows
DEV_HOME
D:/Java/DEVAre you talking about Java System properties (get and set through System.get/setProperty) or Environment Variables (read-only, get through System.getenv)?
You can set the former, not the latter (unless you start a new process through Runtime.exec(), for which you can specify a custom environment. -
How to set environment variables in JavaCAPS6 app server?
In JavaCAPS6 you can have variables in wsdls of the form {$var}.
How are the values of these set in the app server configuration?
RupertHi,
You can set the environmet variable in Weblogic by using the below commands
setWLSEnv.cmd/sh ==>Set the CLASSPATH to include the WebLogic Server classes.
Overview of WebLogic Server Domains
or you can use to set the Environment variable along with domain specific varables using the SetDomainEnv.cmd
To run SetDomainEnv.sh in Linux please use
. ./setDomainEnv.sh it require two dots (Dont miss it )
http://docs.oracle.com/cd/E28280_01/web.1111/e13749/weblogicserver.htm#ADMRF205
Hope it helps -
How to set environment variables in mac mavericks for all users
Can someone here tell me the file to set JAVA_HOME environment variable for all users?
Thanks!nara999999,
the file in which to set the environment variable depends upon the login shell of each user. Presuming that every user has bash as his login shell, and that the environment variable will be needed only in interactive shells, then the file to edit will be /etc/bashrc; if the environment variable will also be needed in non-interactive shells, then /etc/profile should be edited instead (and this will also cover users with either sh or zsh as their login shell). If ksh is used as a login shell, then /etc/ksh.kshrc will need to be edited. If csh or tcsh is used as a login shell, then /etc/csh.login will need to be edited. -
Mountain Lion: how set environment variables
Am I correct that for Mountain Lion, if not earlier, the only way to set environment variables at the system level is to use (or create) a file /etc/launchd.conf that contains commands such as:
setenv CATALINA_BASE /opt/local/share/java/tomcat6
(That does seem to work as expected.)
If so, how does one do this by referencing the value of something else, e.g., to set JAVA_HOME? I tried
setenv JAVA_HOME $(/usr/libexec/java_home)
but then in Terminal if I run
echo $JAVA_HOME
I just get back $(/usr/libexec/java_home).
By contrast, if I put that same setenv JAVA_HOME $(/usr/libexec/java_home) command into my ~/.profile, then the result of echo $JAVA_HOME is the actual value referenced, namely, /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home.Linc Davis wrote:
launchd is not a shell and does not peform expansion. You have to use literal expressions. But you can also modify the bash environment system-wide by editing the file /etc/profile.
But sudo emacs /etc/profile won't let me edit this file: it's read-protected, emacs says.
What permissions should I give it? Right now it's in group wheel, owned by root but with Read permission only.
P.S. And is it really a good idea to edit /etc/profile -- assuming I can suitably set the permissions to do so? Apple goes out of its way to try to hide this file: /etc is a link to /private/etc, e.g. -
How to set a variable value on the BPC Data Manager
Hello BPC Experts,
I'm creating a BPC10 NW version demo environment for our prospect customer.
I made a data manager to import BW data into BPC model from BW cube.
I need to import just one month data into BPC from the BW cube that has more than one month data.
When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
But, in a case where the program (data manager) runs by JOB monthly,
I can't select a member of the time dimension prompt manually.
So I want to know how to set a variable value to the time dimension prompt from a system date etc. automatically.
Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data by the data manager running on JOB ?
(without selecting a member of the time dimension prompt of the data package manually)
Thanks in advance,
KeisukeHi Gersh
Sorry for my late reply and thanks for your helpful information.
I tried the second way of your information and I could configure it.
And I 'll try first way of your information.
Regards,
Keisuke -
How to set enviroment variables for Inso Filter
Hi everyone,
I want to convert word documents to html using CTX_DOC.Filter.According to the documentation,I know I neednot set the 'Inso Filter'in the preference when creating index,but I must set enviroment variables for Inso Filter.
I found the following instructions for it in the 8.1.5 documentation,but I can't understand it well.Is there anyone can tell me how to set enviroments variables for Inso Filter on Windows2000 Server?(My DB version is 8.1.7EE)
Environment Variable Locations
All environment variables related to Inso filtering must made visible to interMedia Text. Set these variables in the following locations:
listener.ora file. This makes the environment variables visible to the extproc PL/SQL process.
The operating system shell from where ctxsrv server is started. This makes the environment variables visible to the ctxsrv process, which does background DML.
Any suggestions are apreciated
Reemon
nullNSAPI plugins are normally configured using parameters specified in magnus.conf and/or obj.conf. What plugin requires you set an environment variable?
-
Forget to set environment variable export SAPINST_USE_HOSTNAME
Dear Experts
we have installed the SAP ECC6.0 EhP4 in HACMP environment with AIX6.1 ,Power HA cluster6.1, oracle 11g database
the problem is while installing the CI and ASCS and Dialog instance I missed to set environment variable
export SAPINST_USE_HOSTNAME = <virtual Host Name> and while starting the sap-inst also i didn't start as like
./sapint SAPINST_USE_HOSTNAME = <virtual Host Name>,Now i am facing problem while doing cluster fail over to another node
Node A host Name is not reflecting in Node B and I am not able to start the SAP with host name of Node A
in AIX6.1 in IBM Admin they didnt give any virtual host name they said that they have configured the cluster with two service IP there is no virtual IP in AIX6.1
please help me out how to resolve this host Name issue and to start the SAP in Node B
Thanks in Advance
krishnaHi Krishna,
I dont agree with the AIX 6.1 having no virtual ip's, because i recently installed a HA instance with ASCS, SCS & also ERS on 6.1
to answer your questions:-
"can you tell is this correct setup or anything we did mistake for file system setup and installation"
This depends on what your requirement is. Typically a cluster will have Oracle on one host and SAP on the other host. Ill explain the VCS concept, so you will have a better understanding.
Lets consider Node1 & Node2. Now each node will have a physical IP and a virtual IP. The Virtual IP will be associated with a set of file systems. For example /oracle will be associated to virtual ip lets say "xyzDB" & the /usr/sap/<sid>, TRANS & sap mount will be associated with virtual ip lets say "abcCI". Now when the cluster fails over to which ever node, these file systems will still be associated with their respective virtual ip's.
So, the start profile will always have START_DVEBMGS_abcCI. Irrespective of which Node the sap is in, when you start the SAP, it will use the virtual hostname and start up SAP. I hope your getting the concept.?
Coming back to the setup, since you have ASCS, Oracle , CI & a dialog instance. Im not sure what file systems you have associated with VCS groups. Can you give command "hastatus -sum" and post the output?
Regarding your other question
"this file system is moving to Node B but while starting SAP on Node B host Name is not reflecting and SAP is not coming up due to there hostname didnt change in Node B,, can you advice me please ,,"
This is inline with what i explained above for cluster mechanism. The physical IP will not change. It is only the virtual IP that is associated with a set of file systems.
Ill give you one more example, Consider the parameter rdisp/mshost = <> . What should this be? Physical host or Virtual host?? :-) .It should be Virtual. Because the CI can be in Node1 or Node2. If we give the physical host, then if the SAP fails over to the other node. How will it start up? because the profiles still say the message server is in the other host... Getting my point?
Regards,
Shanser
Maybe you are looking for
-
OracleDBConsole service does not start
I am running Oracle 10.2.0 on windows xp. For some reason, my OracleDBConsole no longer starts up. I look in the Event Viewer and it just says the process exited during initialization. I try running nmesrvc.exe on the command prompt and get a StartSe
-
I need videochat on gmail.Im using Mozilla but wat plugin to download?
Hi I have problem with IE and Google chrome.So I downloaded mozilla and here if I open gmail I am unable to do video chat...pls let me know what is to be done.
-
Choppy dvd/mpegs RS482M4 motherboard
Newbie here, first puter I have built in about 5 years. Boy have things changed LOL. Using the RS482M4 motherboard, AMD3000 CPU and 1 gig Corsair memory Enermax'disco' case w/ 350w power supply.(for now) windowsXPsp2 OS. Only have two real issues. 1.
-
How set up officejet 4635 to my ipad
How to set up my ipad to my officejet 4635
-
I am using Yahoo as my isp. how do I set incoming and outgoing servers so I can check emails
I am using yahoo as my isp. how do I set up ipad to be able to use my email???