How to set bootclasspath in environment var.
we use the following command to specify the bootclasspath on the fly
java -Xbootclasspath:"<< .jar file>> <<File_name>>
But what i want is rather than giving bootclasspath to each and every java execution, is there a way to specify it as env. variable.
Artho
You shouldn't use an environment variable for it. Create a script / batch -file to execute your applications.
Kaj
Similar Messages
-
Hi all,
I need to know how to set Multi User Environment in the weblogic 5.1
properties file..
Here my question is..:)
1) I have a database with multiple users and having different privileges
for the users.. and i need to use all the privileges when user aceess
the database through weblogic server connectionPool.
2)According to the user privileges i need access the database tables
content and gives the frontEnd(jsp).
3)How to modify dynamically weblogic.properties file in the weblogic
5.1.
If anybody having idea reg. this issues pl...help me..
Thanks in advance
Chandu([email protected],[email protected])Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
connections, and the controls to make sure only one user uses a particular
connection at any one time. If you want to have different DBMS users, you can
have a separate pool for each DBMS user, which may contain as many or few
connections as you want. Some applications has a pool for the accounting
applications, and another for the sales applications etc. Some do have a
separate pool for john, jane, joe etc, each with one connection. Pools
can be created and destroyed dynamically using the dynamic pool API.
Joe
softstar wrote:
>
Hi all,
I need to know how to set Multi User Environment in the weblogic 5.1
properties file..
Here my question is..:)
1) I have a database with multiple users and having different privileges
for the users.. and i need to use all the privileges when user aceess
the database through weblogic server connectionPool.
2)According to the user privileges i need access the database tables
content and gives the frontEnd(jsp).
3)How to modify dynamically weblogic.properties file in the weblogic
5.1.
If anybody having idea reg. this issues pl...help me..
Thanks in advance
Chandu([email protected],[email protected]) -
How to set up Oracle Environment... ?
I have a fresh copy of Oracle Enterprise Linux with Oracle 11g R1 installed.
Steps that I did and I am trying to understand……
1. Boot the OEL server.
2. From remote connection, using PUTTY, I connect to the OEL
3. I am setting the variables(ORACLE_HOME & ORACLE_SID) with the ‘export’
4. Login to sqlplus as sys with sysdba
5. Started the database. Everything is fine!
6. If I logout of PUTTY and log back all my step 3 variables are gone.
7. You know now I can’t start the Oracle database without error.
My question is……
How to make the proper environment for Oracle database?
Do I have to have the above two variable populated all the time. Does these two variables need to be part of any login script (for root)? Once session (shell) has to be running all the time?
Missing the link here. I am learning.
Thank you,
SmithFor starters, there are several shell environments that you could have set as your default, such as: sh, csh, ksh, bash, tcsh, zsh, or rc.
Depending which shell environment you have set, you may or will have a different startup file when you login.
But the basics still apply:
For the most part, the first thing is that you should not be running anything as root (related to Oracle).
Oracle should have its own userid and be part of the DBA group.
Perhaps you mistyped.
Next, yes, your environment variables will need to be reset when you log back in.
There are a number of ways to accomplish this.
One of the most popular ways (although I don't necessarily agree), is to set the environment variables in your login startup script.
for example, your .profile (dot-profile). For ksh shell, for example, this is run at start up when you log in, after your session has read the /etc/profile script for system wide settings.
If the environment variables are set correctly, they are exported, which is sourced as your login script runs.
Alternately, (which I prefer), is you can 'source' the environment variables yourself.
This is done differently again depending on your default shell.
For ksh, you simply type . <shell script name>. (That is: dot-space-scriptfile)
It is important that you include a space between the dot and the file to be executed.
This will allow you to spawn additional windows from your main window and carry those env parameter settings forward.
Another option, preferred by Oracle, is that you set the Oracle $PATH in your login script (.profile or whatever), and then execute . oraenv. (dot-space-oraenv). This sources the parameters that are set when you run the oraenv which sets things such as your ORACLE_SID and ORACLE_HOME.
HTH... -
How to set reports server environment
Hi..
Now Oracle 9iAS r1 (reports60) was installed on Linux, Unix and NT for testing.
I typed like below in web browser .
http://IP:Port/dev60cgi/rwcgi60/showenv?server=ServerName
then Oracle Reports environment variants(REPORTS_PATH, REPORTS... so on..) did not set . except PATH, LI_LIBRARY_PATH and ORACLE_HOME variants like below..
====================================================
Oracle Reports Server CGI60 Environment Variables:PATH /home/ora9iasr1/product/9.0.1/Apache/perl/bin:/home/ora9iasr1/product/9.0.1/bin:/usr/kerberos/bin:.:/usr/local/bin:/usr/java/jdk1.3.1_07/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/ora9iasr1/bin
LD_LIBRARY_PATH /home/ora9iasr1/product/9.0.1/6iserver/lib
ORACLE_HOME /home/ora9iasr1/product/9.0.1/6iserver
ORACLE_PATH undefined
REPORTS60_PATH undefined
REPORTS60_TMP undefined
REPORTS60_CGIMAP undefined
==============================
I can set it with editing registery on Windows.
But thought I set it with export option at .bash_profile, reports60.sh and reports_server on Unix platform, it did not affected.
Please let me know how to set reports environment on Unix.
regards..
Ryu,The reports CGI is started from script rwcgi60. Did you set those env variables in rwcgi60? Or did rwcgi60 call reports60.sh to set env variables? Please check.
-Jeff -
How to set new Tomcat Environment variable?
I have an imported class used by my servlet that is supposed to look for an environment variable like "xxx.app.logdir". I'm having trouble setting it in Tomcat. I have tried the following (stopping and starting Tomcat with each change):
1) In \conf\server.xml file, adding under <GlobalNamingResources> <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Environment name="xxx.app.logdir" type="java.lang.String" value="C:\\Tomcat-4-1\\logs"/>2) In my app's web.xml file <env-entry>
<env-entry-name>xxx.app.logdir</env-entry-name>
<env-entry-value>C:\\Tomcat-4-1\\logs</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry> 3) In my \bin\startup.bat file
set xxx.app.logdir=C:\\Tomcat-4-1\\
4) On my PC's Environment variables.
Nothing has worked. In my code I have the lines
logMsg("System.getProperty('mmm.app.logdir')=" +
System.getProperty("xxx.app.logdir"));
logMsg("System.getProperty('simpleValue')=" +
System.getProperty("simpleValue")); with the output :System.getProperty('xxx.app.logdir')=null
System.getProperty('simpleValue')=null I've searched forums and the Tomcat docs, but no luck. Any ideas?I tried that as well, but maybe I didn't define my DefaultContect correctly. Do I need any other parameters? Couldn't find it in the Tomcat docs. <DefaultContext>
<Environment name="matt" type="java.lang.String" value="value1" />
</DefaultContext>My new code (I simplified the variable name for testing):
System.out.println("System.getProperty('matt')=" + System.getProperty("matt"));
System.out.println("System.getProperty('MATT')=" + System.getProperty("MATT"));Results:
System.getProperty('matt')=null
System.getProperty('MATT')=null -
when an user authenticate in the directory express, he can see information the others users.
It is best to leave the settings of a LCD monitor to its native resolution.
You can use an extension to set a default font size and page zoom on web pages.
*Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
*NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/ -
How to set the PATH Environment variable with multiple homes?
I have several Oracle homes, and now I cannot get reports to work anymore. These are the things I installed, in this order:
- Oracle Database 10g
- Oracle Developer Suite 10g
- Oracle Discoverer 4
- Oracle HTMLDB
Now my PATH environment variable is flooded with paths, but none seem to work when I want to start Reports 10g. I deleted all of the paths from the other homes and still no luck.
This was my original PATH:
C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;
C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin;
C:\oradev10g\jdk\jre\bin\classic;
C:\oradev10g\jdk\jre\bin;
C:\oracle\product\10.1.0\compdb_1\jre\1.4.2\bin;
C:\oracle\product\10.1.0\compdb_1\bin;
C:\oracle\product\10.1.0\compdb_1\jre\1.1.8\bin;
C:\oracle\product\10.1.0\compdb_1\jre\1.4.2\bin\client;
C:\Disco41Home\bin;C:\oracle\product\10.1.0\db_1\bin;
C:\oradev10g\jdk\jre\bin\client;C:\oradev10g\jlib;
C:\oradev10g\bin;
C:\oradev10g\jre\1.4.1\bin;
C:\oradev10g\jre\1.1.8\bin;
C:\PROGRAM FILES\THINKPAD\UTILITIES;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
C:\WINDOWS\Downloaded Program Files;
%SystemDrive%\IBMTOOLS\Python22;
C:\Program Files\PC-Doctor for Windows\services
and this is the PATH after I stripped it:
C:\oradev10g\jdk\jre\bin\classic;
C:\oradev10g\jdk\jre\bin;
C:\oradev10g\jdk\jre\bin\client;
C:\oradev10g\jre\1.1.8\bin;
C:\oradev10g\jlib;
C:\oradev10g\bin;
C:\PROGRAM FILES\THINKPAD\UTILITIES;
%SystemRoot%\system32;
%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\WINDOWS\Downloaded Program Files;
%SystemDrive%\IBMTOOLS\Python22;
C:\Program Files\PC-Doctor for Windows\services
What am I supposed to change to get Reports to work again (i.e. do more than just show the splash screen)?
Forms and Designer work just fine....Never mind I found my solution here:
Re: Oracle Developer hangs when starting...i'm desperate -
How to set up OEL environment..?
well, I already installed peopletools and peoplesoft.
How can I put a "short cut" like this picture.. http://2.bp.blogspot.com/_GAPqu9CUk1k/R4aT2fOgWiI/AAAAAAAAAN4/WYYq8JdsAfw/s1600-h/1ScreenShot001_LoadAppl.jpg
And I also installed oracle database 11g. How can I run sql plus by console?? Do I have to start oracle database first?? How??
Thanks you. Hope this is usefull for others too..I don't use GNOME, so I do not know where this tool is on the normal menu bar, but here is how to edit the GNOME menus:
Make sure you have the alacarte RPM package installed:
$ rpm -q alacarteand then run alacarte from the command line:
$ alacarte -
Firefox 4 multi user environment in linux: How to set global settings?
<blockquote>Locking duplicate thread.<br>
Please continue here: [/questions/826921]</blockquote><br>
Hi,
We used to be able to change settings in all.js file in FF 3.x.x platform, for changing settings like, proxy, authentication, etc. We installed FF 4.0.1 in linux, but, I can't find the all.js file to change any of the global settings in FF 4.0.1.
Could you please point me how to changeglobal settings in FF 4.x version?
thanks in advance.Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
connections, and the controls to make sure only one user uses a particular
connection at any one time. If you want to have different DBMS users, you can
have a separate pool for each DBMS user, which may contain as many or few
connections as you want. Some applications has a pool for the accounting
applications, and another for the sales applications etc. Some do have a
separate pool for john, jane, joe etc, each with one connection. Pools
can be created and destroyed dynamically using the dynamic pool API.
Joe
softstar wrote:
>
Hi all,
I need to know how to set Multi User Environment in the weblogic 5.1
properties file..
Here my question is..:)
1) I have a database with multiple users and having different privileges
for the users.. and i need to use all the privileges when user aceess
the database through weblogic server connectionPool.
2)According to the user privileges i need access the database tables
content and gives the frontEnd(jsp).
3)How to modify dynamically weblogic.properties file in the weblogic
5.1.
If anybody having idea reg. this issues pl...help me..
Thanks in advance
Chandu([email protected],[email protected]) -
How to set up J2ME CLDC?
Hi everyone,
I downloaded the J2ME CLDC 1.0.2 and have unzipped the file, however, insides the docs folder, i could not find any information on how to set up the environment for windows to developed Palm OS applications.
If there's anyone who knows how to do it, or where i can find such information on how to setup the cldc, pls help me. thank you =)
Yours sincerely,
Javier[JavierHo],
If you intend to deploy J2ME based applications on a PalmOS based device, you will need to have the kVM for PalmOS, i.e. Java Application Manager, installed onto the Palmtop in order to run the MIDlet application that you develop.
You can start your development process by downloading:
(1) MIDP 1.0 packages at:
http://java.sun.com/products/midp/
At the moment, there is a beta version of the MIDP for PalmOS available for download as well.
You use the MIDP packages to develop the MIDlet J2ME based applications for J2ME devices.
(2) J2ME Wireless Toolkit at:
http://java.sun.com/products/j2mewtoolkit/index.html
This package gives you an emulator environment within an IDE tool to compile, preverify and run/test your MIDlet before you deploy your MIDlet onto a real devices. The latest version is Wireless Toolkit 1.0.3 Beta which supports the PalmOS emulator.
(3) PalmOS emulator at : http://www.palmos.com/dev/tech/tools/emulator/
The PalmOS emulator works in conjunction with the J2ME Wireless Toolkit i.e. when you use the Toolkit and specify the emulator env. as the PalmOS emulator to test the MIDlets that you develop.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/ -
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 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 the domain of a cookie in localhost environment
in some scenario i have to set the domain of cookie on my local environment,
how can be done?????????????
i.e http://localhost:7001/myapp/testservlet
how to set the cookie domain for "myapp"Hi
After Some googling I could find out this for you. I think it is a bug with IE.
http://www.webmasterworld.com/forum21/11530.htm
The idea is to use a virutal host.
HTH
VJ -
Environment Variables: How to set
I deploy my application to Tomcat. My application uses environment variables that are set in the server.xml file as follows:
<?xml version="1.0" encoding="UTF-8"?>
<Server>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<Environment
name="simpleValue"
type="java.lang.Integer"
value="30"/>
Note: in JBoss it would a little different:
<env-entry>
<description>The maximum number of tax exemptions allowed </description>
<env-entry-name>simpleValue</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>30</env-entry-value>
</env-entry>
The application works fine when deployed to Tomcat. However, I can not find where in JSC or the embedded Sun server to set these environment variables? Anyone know? Thanks in advance.
KellySorry, that document talks about deploying to JBoss. That was not my question. My question was:
I can not find where in JSC or the embedded Sun server to set environment variables? Anyone know? Thanks in advance.
Well, I found a partial answer. You can add environment variables to the Web.xml as follows:
<env-entry>
<env-entry-name>UploadDirectory</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>\logs\tqs6</env-entry-value>
</env-entry>
That puts them at the application level. I am looking for how to set them at the server level for Suns Java Application Server that is bundled in JSC. -
How to set ORACLE_HOME environment variables in win 2003
Can anyone tell me how to set ORACLE_HOME environment variables in Win2003
Please tell me the significance of that also.It will be really helpful if u can help me out from Path variable seting of JAVA SDK also... Thanks in advance...hi
use this code IN FORMS60 variable in Regedit
\\server\DATA\store\Forms;
Rizwan
Maybe you are looking for
-
Im a rookie in ABAP development and i was wondering that how we use the BAdI enhancement technique in the real time scenarios. Like do we get create them or we have few already built BAdI's which we work on? Can any body please explain how this works
-
How to use https inside flex with 2-way authentication
I've got a Flex app which provides a front-end for doing basic CRUD db operations. The app is served up from a Tomcat/Blaze server using 2-way authentication and uses Java objects to do the server-side db work. Serving the app works fine. The proble
-
Exchange 2010 accepted domain and email address policy
So I need some help as to which accepted domain is right for us. We are a single forest single domain that is subbed to a parent domain. sub.domain.com We run our own exchange 2010 separate from domain.com. We want all mail to show up as @domain.co
-
How to change Date of joining in Oracle Apps Hrms?
While employee data migration i have entered incorrect original date of hire.Now ,i want to correct it to system date. I'm using 'hr_person_api.update_person' to correct the date but not able to do.So, can any let me know how i can do that from backe
-
Plugin-container uses a lot of CPUtime.
I like to keep a few tabs open to webpages I want to revisit or read later. So it is not uncommon for me to have 1 or two active pages I'm looking at, and 20 dormant pages I won't be looking at for a few days. Since the last upgrade, the plugin-conta