R12, Environment Variables on Windows, and OBIEE
Dear Experts,
I've managed to install R12 on Windows.
Now, in the global environment variable, Path, the user Oracle has a number of directories in its default PATH, starting with the Oracle apps middle tier.
C:\oapps\apps\tech_st\10.1.2\bin;
C:\oapps\apps\tech_st\10.1.2\jdk\jre\bin\classic;
C:\oapps\apps\tech_st\10.1.2\jdk\jre\bin;
C:\oapps\apps\tech_st\10.1.2\jlib;
C:\oapps\apps\tech_st\10.1.3\bin;
C:\oapps\db\tech_st\11.1.0\bin;
C:\Windows\system32;
C:\Windows;
I notice that there are .cmd scripts that set the Path.
This script sets the path to look in: c:\oapps\db
cd C:\oapps\db\tech_st\11.1.0
VIS_black.cmd
echo %PATH%
C:\oapps\db\tech_st\11.1.0\perl\5.8.3\bin\MSWin32-x86-multithread\;
C:\oapps\db\tech_st\11.1.0\bin;
This script sets the path to look in: c:\oapps\apps
set PATH=""
cd c:\oapps\apps\apps_st\appl
VIS_black.cmd
echo %PATH%
C:\oapps\apps\apps_st\appl\au\12.0.0\bin;
I'd like to install OBIEE on the same server. Obviously, I don't want any path conflicts. And, OBIEE uses a different version of java.
1)
Do all these Apps directories need to remain in the global PATH environment variable? Or, can the directories be removed from the path, and the scripts can be relied on to set the appropriate variables?
Thanks a lot!
if you want global settings (always present, even after reboot), you have to edit the autoexec.bat file, e..g
SET CLASSPATH=c:\myclasses
you can set environment variables temporarility in a DOS shell using the same command.
if possible, you should avoid the CLASSPATH environment variable, and use the -cp or -classpath option for java and javac. This helps a lot to solve classpath confusions.
Similar Messages
-
Setting Environment variable in windows xp
Hi all,
I am trying to run a java program in textpad, which is installed in windows XP, but i am getting the following error.
java.lang.NoSuchMethodError: main
Exception in thread "main"
Can anybody tell me, how to set the environment variable in the control panel.
Thanx,
Guddujava.lang.NoSuchMethodError: main
Exception in thread "main"This error is NOT caused by an environmental variable mis-configuration. It means you did not define a main method correctly, or you are trying to run a class as an application and it is not an application.public static void main(String[] args) -
Jar file doesn't read classpath environment variable from windows xp
I created a small program that uses javamail and jdbc driver. I program on Win XP and use java 1.6.04.
When I compiled my classes the program works fine but when I created a jar package the jar file cannot 'see' the classpath that windows has already set.
I have to set the classpath in the manifest file and then it works ok.
Is this normal? I was expecting that the jar file would work just fine without any complication since the classpath is already set in the system?
If you could point to any documentation that covers this it would be great.
Thank you very much.
Gentigenti_tech wrote:
I specified the class-path in manifest in jar file and I looked at the tutorial you are suggesting:
http://java.sun.com/docs/books/tutorial/deployment/jar/
which is not clear at all about the fact that jar ignores the class-path environment variable.It is specified for java. http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#-jar -
Setting ORACLE_HOME as Environment variable in Windows
Hi,
I have a problem.
I am using Oracle Application Server 9.0.4. on Windows 2000 server .
There are 2 homes, one for mid tier and one for Infra.
Now when I look in PATH variable of the environment variables, i can see both homes specified there.
But when issue echo %ORACLE_HOME% from command prompt then i can see nothing.
And there is no ORACLE_HOME environment variable, so i created a ORACLE_HOME variable and assigned the Oracle home path to it.
Now when i issue the command echo %ORACLE_HOME% i can see the value of the ORACLE_HOME,
So is this the correct way to set the ORACLE_HOME?
Is this the way to create the ORACLE_HOME environment variable.
Thanks & Regards,
Avinash.
Pune.
India.So is this the correct way to set the ORACLE_HOME?
Is this the way to create the ORACLE_HOMEenvironment
variable.No. Not on Windows platforms.
The Oracle Home paths are already set via Windows
Resgistry values. Check HKLM\Software\Oracle\ (HOMEx
or KEY_<home name>) for ORACLE_HOME settings.
This is used by programs via PATH and when calling a
program that uses the oracle.key files from OH\bin.
Setting it via system environment could override
individual settings, which may lead to unwanted
results or issues.True for some areas.
And yet, for Patching you MUST set the Oracle_Home variable, in which case Virag's response is the correct method. -
Gcc seems not to be recognising environment variables for include and lib.
I'm trying to install programs into a non standard location, but GCC does not seem to be checking the paths defined in global profile. All 3rd party dependencies are not found and only the default locations are checked.
The environment variables defined in profile are:
CPLUSINCLUDEPATH="/DVL/include:/GNU/include:/usr/X11/include:/TEST/include"
DYLDLIBRARYPATH="/DVL/lib":/GNU/lib:/usr/x11/lib"
LIBRARY_PATH="/dvl/lib:/gnu/lib:/TEST/lib"
As GCC is a proven technology, I can only assume that my variables are incorrect or something is missing. Has anyone else experienced this or is your configuration recognising non-standard locations?sorry, wrong forum. I put this topic again in forum "portal applications"
-
How to find the previous path environment variable in windows 2008
I am reconfiguring the Hyperion 11.1.2, and later, I installed the ODI. And them when I come back to reconfigure the Hyperion, it cannot be reconfigured, and say cannot find the path parameter. And I check the PATH environment variable, and find it is showing a dumy value, do we have a way to recover the previous PATH envirnment variable?
To get the source IP address, you will need to enable File Share auditing: http://technet.microsoft.com/en-us/library/dd772690%28v=ws.10%29.aspx
Otherwise, you can simply disconnect the user session.
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
Different Environment Variable in OS and Solman
Hi dear experts,
I have a weird question here. I set the environment variable in the OS as blew:
smsp:smpadm 52> echo $PATH
/sybase/SMP/ASE-15_0/jobscheduler/bin:/sybase/SMP/ASE-15_0/bin:/sybase/SMP/ASE-15_0/install:/sybase/SMP/DBISQL/bin:/sybase/SMP/OCS-15_0/bin:/usr/sap/SMP/DVEBMGS00/exe/sapjvm_4/bin:/home/smpadm/bin:/usr/sap/SMP/hdbclient:/sapdb/programs/bin:/sapdb/clients/SMP/bin:/sapdb/clients/SMP/pgm:/sapdb/programs/pgm:/sapdb/programs:/sapdb/programs/lib:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/sap/SMP/SYS/exe/uc/linuxx86_64:/usr/sap/SMP/SYS/exe/run:/home/smpadm:.
But in solman, I run the same command in RSBDCOS0, get this:
echo $PATH
/usr/sap/SMP/DVEBMGS00/exe:/sybase/SMP/ASE-15_0/jobscheduler/bin:/sybase/SMP/ASE-15_0/bin:/sybase/SMP/ASE-15_0/install:/sybase/SMP/DBISQL/bin:/sybase/SMP/OCS-15_0/bin:/usr/sap/SMP/DVEBMGS00/exe/sapjvm_4/bin:/home/smpadm/bin:/usr/local/bin:/bin:/usr/bin:/u
It's same as what I found in program by debugging. And that's the reason why I failed to install MaxDB.
I have restarted solman, but the issue persisted. Can you give me any advices? Thank you.
Regards,
Pany PanHi Gaurav,
There is only bash.bashrc exists, I have never did anything to this file before. As below:
# /etc/bash.bashrc for SuSE Linux
# PLEASE DO NOT CHANGE /etc/bash.bashrc There are chances that your changes
# will be lost during system upgrades. Instead use /etc/bash.bashrc.local
# for your local settings, favourite global aliases, VISUAL and EDITOR
# variables, etc ...
# Check which shell is reading this file
if test -z "$is" ; then
if test -f /proc/mounts ; then
if ! is=$(readlink /proc/$$/exe 2>/dev/null) ; then
case "$0" in
*pcksh) is=ksh ;;
*) is=sh ;;
esac
fi
case "$is" in
*/bash) is=bash
case "$0" in
sh|-sh|*/sh)
is=sh ;;
esac ;;
*/ash) is=ash ;;
*/dash) is=ash ;;
*/ksh) is=ksh ;;
*/ksh93) is=ksh ;;
*/pdksh) is=ksh ;;
*/*pcksh) is=ksh ;;
*/zsh) is=zsh ;;
*/*) is=sh ;;
esac
# `r' in $- occurs *after* system files are parsed
for a in $SHELL ; do
case "$a" in
*/r*sh)
readonly restricted=true ;;
-r*|-[!-]r*|-[!-][!-]r*)
readonly restricted=true ;;
--restricted)
readonly restricted=true ;;
esac
done
unset a
else
is=sh
fi
fi
# Call common progams from /bin or /usr/bin only
path ()
if test -x /usr/bin/$1 ; then
${1+"/usr/bin/$@"}
elif test -x /bin/$1 ; then
${1+"/bin/$@"}
fi
# ksh/ash sometimes do not know
test -z "$UID" && readonly UID=`path id -ur 2> /dev/null`
test -z "$EUID" && readonly EUID=`path id -u 2> /dev/null`
# Colored file listings
if test -x /usr/bin/dircolors ; then
# set up the color-ls environment variables:
if test -f $HOME/.dir_colors ; then
eval "`/usr/bin/dircolors -b $HOME/.dir_colors`"
elif test -f /etc/DIR_COLORS ; then
eval "`/usr/bin/dircolors -b /etc/DIR_COLORS`"
fi
fi
# ls color option depends on the terminal
# If LS_COLORS is set but empty, the terminal has no colors.
if test "${LS_COLORS+empty}" = "${LS_COLORS:+empty}" ; then
LS_OPTIONS=--color=tty
else
LS_OPTIONS=--color=none
fi
if test "$UID" = 0 ; then
LS_OPTIONS="-A -N $LS_OPTIONS -T 0"
else
LS_OPTIONS="-N $LS_OPTIONS -T 0"
fi
# Avoid trouble with Emacs shell mode
if test "$EMACS" = "t" ; then
LS_OPTIONS='-N --color=none -T 0';
path tset -I -Q
path stty cooked pass8 dec nl -echo
fi
export LS_OPTIONS
# Set prompt and aliases to something useful for an interactive shell
case "$-" in
*i*)
# Some useful functions
if test -z "$restricted" ; then
startx () {
test -x /usr/bin/startx || {
echo "No startx installed" 1>&2
return 1;
/usr/bin/startx ${1+"$@"} 2>&1 | tee $HOME/.xsession-errors
remount () { /bin/mount -o remount,${1+"$@"} ; }
fi
# Set prompt to something useful
case "$is" in
bash)
# Append history list instead of override
shopt -s histappend
# All commands of root will have a time stamp
if test "$UID" -eq 0 ; then
HISTTIMEFORMAT=${HISTTIMEFORMAT:-"%F %H:%M:%S "}
fi
# Force a reset of the readline library
unset TERMCAP
# Returns short path (last two directories)
spwd () {
( IFS=/
set $PWD
if test $# -le 3 ; then
echo "$PWD"
else
eval echo \"..\${$(($#-1))}/\${$#}\"
fi ) ; }
# Set xterm prompt with short path (last 18 characters)
ppwd () {
local _t="$1" _w _x _u="$USER" _h="$HOST"
test -n "$_t" || return
test "${_t#tty}" = $_t && _t=pts/$_t
test -O /dev/$_t || return
_w="$(dirs +0)"
_x=$((${#_w}-18))
test ${#_w} -le 18 || _w="...${_w#$(printf "%.*s" $_x "$_w")}"
printf "\e]2;%s@%s:%s\007\e]1;%s\007" "$_u" "$_h" "$_w" "$_h" > /dev/$_t
# If set: do not follow sym links
# set -P
# Other prompting for root
_t=""
if test "$UID" -eq 0 ; then
_u="\h"
_p=" #"
else
_u="\u@\h"
_p=">"
if test \( "$TERM" = "xterm" -o "${TERM#screen}" != "$TERM" \) \
-a -z "$EMACS" -a -z "$MC_SID" -a -n "$DISPLAY" \
-a ! -r $HOME/.bash.expert
then
_t="\$(ppwd \l)"
fi
if test -n "$restricted" ; then
_t=""
fi
fi
case "$(declare -p PS1 2> /dev/null)" in
*-x*PS1=*)
# With full path on prompt
PS1="${_t}${_u}:\w${_p} "
# # With short path on prompt
# PS1="${_t}${_u}:\$(spwd)${_p} "
# # With physical path even if reached over sym link
# PS1="${_t}${_u}:\$(pwd -P)${_p} "
esac
# Colored root prompt (see bugzilla #144620)
if test "$UID" -eq 0 -a -t ; then
_bred="$(path tput bold 2> /dev/null; path tput setaf 1 2> /dev/null)"
_sgr0="$(path tput sgr0 2> /dev/null)"
PS1="\[$_bred\]$PS1\[$_sgr0\]"
unset _bred _sgr0
fi
unset _u _p _t
ash)
cd () {
local ret
command cd "$@"
ret=$?
PWD=$(pwd)
if test "$UID" = 0 ; then
PS1="${HOST}:${PWD} # "
else
PS1="${USER}@${HOST}:${PWD}> "
fi
return $ret
cd .
ksh)
# Some users of the ksh are not common with the usage of PS1.
# This variable should not be exported, because normally only
# interactive shells set this variable by default to ``$ ''.
if test "${PS1-\$ }" = '$ ' ; then
if test "$UID" = 0 ; then
PS1="${HOST}:"'${PWD}'" # "
else
PS1="${USER}@${HOST}:"'${PWD}'"> "
fi
fi
zsh)
# setopt chaselinks
if test "$UID" = 0; then
PS1='%n@%m:%~ # '
else
PS1='%n@%m:%~> '
fi
# PS1='\u:\w> '
PS1='\h:\w> '
esac
PS2='> '
if test "$is" = "ash" ; then
# The ash shell does not have an alias builtin in
# therefore we use functions here. This is a seperate
# file because other shells may run into trouble
# if they parse this even if they do not expand.
test -s /etc/profile.d/alias.ash && . /etc/profile.d/alias.ash
else
unalias ls 2>/dev/null
case "$is" in
bash) alias ls='ls $LS_OPTIONS' ;;
zsh) alias ls='\ls $=LS_OPTIONS' ;;
*) alias ls='/bin/ls $LS_OPTIONS' ;;
esac
alias dir='ls -l'
alias ll='ls -l'
alias la='ls -la'
alias l='ls -alF'
alias ls-l='ls -l'
# Set some generic aliases
alias o='less'
alias ..='cd ..'
alias ...='cd ../..'
alias cd..='cd ..'
if test "$is" != "ksh" ; then
alias -- +='pushd .'
alias -- -='popd'
fi
alias rd=rmdir
alias md='mkdir -p'
if test "$is" = "bash" -a ! -x /bin/which -a ! -x /usr/bin/which ; then
# Other shells use the which command in path (e.g. ash) or
# their own builtin for the which command (e.g. ksh and zsh).
_which () {
local file=$(type -p ${1+"$@"} 2>/dev/null)
if test -n "$file" -a -x "$file"; then
echo "$file"
return 0
fi
hash -r
type -P ${1+"$@"}
alias which=_which
fi
alias rehash='hash -r'
alias you='if test "$EUID" = 0 ; then /sbin/yast2 online_update ; else su - -c "/sbin/yast2 online_update" ; fi'
if test "$is" != "ksh" ; then
alias beep='echo -en "\007"'
else
alias beep='echo -en "\x07"'
fi
alias unmount='echo "Error: Try the command: umount" 1>&2; false'
test -s $HOME/.alias && . $HOME/.alias
fi
# Expert mode: if we find $HOME/.bash.expert we skip our settings
# used for interactive completion and read in the expert file.
if test "$is" = "bash" -a -r $HOME/.bash.expert ; then
. $HOME/.bash.expert
elif test "$is" = "bash" ; then
# Complete builtin of the bash 2.0 and higher
case "$BASH_VERSION" in
[2-9].*)
if test -e $HOME/.bash_completion ; then
. $HOME/.bash_completion
elif test -e /etc/bash_completion ; then
. /etc/bash_completion
elif test -s /etc/profile.d/complete.bash ; then
. /etc/profile.d/complete.bash
fi
for s in /etc/bash_completion.d/*.sh ; do
test -r $s && . $s
done
if test -f /etc/bash_command_not_found ; then
. /etc/bash_command_not_found
fi
esac
fi
# Do not save dupes and lines starting by space in the bash history file
HISTCONTROL=ignoreboth
if test "$is" = "ksh" ; then
# Use a ksh specific history file and enable
# emacs line editor
: ${HISTFILE=$HOME/.kshrc_history}
: ${VISUAL=emacs}
case $(set -o) in
*multiline*) set -o multiline
esac
fi
# command not found handler in zsh version
if test "$is" = "zsh" ; then
if test -f /etc/zsh_command_not_found ; then
. /etc/zsh_command_not_found
fi
fi
esac
# Just in case the user excutes a command with ssh
if test -n "$SSH_CONNECTION" -a -z "$PROFILEREAD" ; then
_SOURCED_FOR_SSH=true
. /etc/profile > /dev/null 2>&1
unset _SOURCED_FOR_SSH
fi
# And now let us see if there is e.g. a local bash.bashrc
# (for options defined by your sysadmin, not SuSE Linux)
case "$is" in
bash) test -s /etc/bash.bashrc.local && . /etc/bash.bashrc.local ;;
ksh) test -s /etc/ksh.kshrc.local && . /etc/ksh.kshrc.local ;;
zsh) test -s /etc/zsh.zshrc.local && . /etc/zsh.zshrc.local ;;
ash) test -s /etc/ash.ashrc.local && . /etc/ash.ashrc.local
esac
test -s /etc/sh.shrc.local && . /etc/sh.shrc.local
if test -n "$restricted" -a -z "$PROFILEREAD" ; then
PATH=/usr/lib/restricted/bin
export PATH
fi
# End of /etc/bash.bashrc -
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. -
Problem reading environment variable in windows
Hi,
When I run this program,
env1 = "Console";
env2 = (System.getenv("SESSIONNAME"));
System.out.print(env1.length() + "/");
System.out.println(env2.length() + "/");
System.out.print(env2 + "/");
System.out.println(System.getenv("SESSIONNAME") + "/");
if (env1 == env2) System.out.println("identical");
else System.out.println("wrong"); I got this output
7/7/
Console/Console/
wrongWhen I type "set" in a Windows cmd box,
I have SESSIONNAME=Console
I don't see why env1 and env2 are different.
Do you know ?
Thanks,O now, I made this mistake already found it myself, but this I did not think about, I
am sorry to post such a stupid problem !
and indeed this works, I can continue now.
if ((System.getenv("SESSIONNAME").equals("Console"))) System.out.println("identical");
else System.out.println("wrong"); Thanks jverd ! -
Environment variable for share and etc
Hi all, first let me say sorry if this is the wrong sub-section, This one is the closest as far as I could tell.
I've been messing around with building self-contained packages for top level apps like gimp, vlc etc. Ive gotten all the libraries worked out by using LD_LIBRARY_PATH.
However they still need files in /usr/share and /etc. I know I can change these at compile time, but what im trying to do change some variable to look in the programs root directory not the systems.
Does anyone know if sysconfdir can be changed at runtime? for example use ~/Progs/Gimp/usr/share instead of /usr/share? Ive been playing around with a command called cde which sandboxes that apps fairly well
but its very unclean, and is not aware of any files outside the sandbox (think chroot).
Thanks in advance, and sorry for my bad grammer.Prashant,
Did you check this?
https://kr.forums.oracle.com/forums/thread.jspa?threadID=670431
Regards,
Dpka -
Can environment variable be used in Windows
Can an environment variable be set and used in Windows for compiling.
For example, instead of typing in something like
javac -classpath c:/java/j2sdk/xml/lib/jaxb.jar MyProg.java
can I set an environment variable (call it "ev")
to c:/java/j2sdk/xml/lib
(or would it be c:\java\j2sdk\xml\lib)
so that something like one of the following (which one?) will work:
javac -classpath ev/jaxb.jar MyProg.java
or
javac -classpath %ev%/jaxb.jar MyProg.java
or
javac -class path %ev%\jaxb.jar MyProg.javaDon't know - best way to find out is to test.
-
Trouble Setting Windows Environment Variables
My environment:
Windows XP Professional
Intellij 6.0.4
JDK 1.4.
I am seeing some very weird behavior when I try to get/set Environment Variables in Windows XP. I use the following code to read the variables:
Process p = r.exec( "cmd.exe /c set" ); I create an environment varialbe through the Windows control panel, and it does not show up when I execute the above command. However, when I close my IDE and reopen it and run the same code, the variable appears. How is this possible? I am using the Windows XP cmd.exe in my program to read the variables. When I open a DOS window and type the same command, my variable is there.
This is driving me crazy.
i want my program to do some work, but then check a system variable to see if it should continue. I want a user to be able to stop processing by setting the environmen variable to true.
Thanks!
NathanRuntime.exec has a lot of overloadings. Two of them
allows you to specify the environment variables.
exec
public Process exec(String[] cmdarray,
String[] envp,
File dir)
throws IOExceptionExecutes the specified command and
arguments in a separate process with the specified
environment and working directory.
cmdarray - array containing the command to call and
its arguments.
envp - array of strings, each element of which has
environment variable settings in format name=value.
dir - the working directory of the subprocess, or null
if the subprocess should inherit the working directory
of the current process.
I had this sample program:
public class SetVarExample {
public static void main (String[] args) throws Exception {
String[] cmd_env= new String[] {"password="+"ABCD","Path=C:\\Sun\\AppServer\\jdk\\bin"};
String cmd = "cmd /c SET ";
Runtime.getRuntime().exec(cmd,cmd_env);
System.out.println( "Finish ...." );
I tried it in a command prompt. But looks like when the program exits, it's a whole new process and so it does not retain the env variables set in the java program.
Any suggestions? Am I doing it worng?
thanks -
Usage of CGI environment variables SERVER_NAME and HTTP_HOST by APEX
Hi,
I have a question about the usage of the CGI environment variables SERVER_NAME/SERVER_PORT and HTTP_HOST by APEX.
When does it use which CGI environment variables when it is generating absolute URLs.
Based on the following thread about the online help (Re: Help does not show content it seems to use SERVER_NAME/SERVER_PORT. At least for the online help.
But based on my own tests some time ago about the flash charting at the following thread (Re: APEX Charts - Error XML Loading falied I investigated that at least flash charting is using HTTP_HOST to generate an absolute URL.
My question now is what is the logical difference between HTTP_HOST and SERVER_NAME and which of the URLs should be used when I want to generate absolute URLs in my application?
I would tend to use HTTP_HOST because it seems to be more logically. I would see SERVER_NAME more as just the name of the web-server, which doesn't have to be the URL the user enters in case a reverse proxy is used.
Thanks
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/We use HTTP_HOST in most cases from what I can see. You may have also noted that HTTP_HOST may have :<port> appended to the hostname as well.
Scott -
Which Oracle folders into "PATH" system Environment Variable
Which Oracle folders must exist into "PATH" system Environment Variable in Windows OS?
The folders must contain Oracle command line utilities, like "sql * plus", "exp" and so on.The path to your bin folder ...
for eg :
D:\oracle\product\10.2.0\db_1\bin;Cheers :)
Renjith Madhavan -
Is it possible to know the %TEMP% environment variable from my program?
I would like to know if my program want to save a file to the temp storage on my PC, how can I know the %TEMP% environment variable in Windows in my program?
You could pass in the %TEMP% as a system variable at startup. java -cp . -Dwhateveryouwanttocallit=/tmp.
Here's my guess as to what the .bat file might contain. I assume you are running on Windows(TM).
java -cp . -Dwhateveryouwanttocallit=%TEMP%
You could use a batch script to populate the variable and then start up your program. Then you could access the variable by using an extremely rude class called System. You can use System.getProperty("whateveryouwanttocallit") to retrieve the value.
Maybe you are looking for
-
How to open a form action in a popup window?
I have a form that has a submit button and a email button. The email button calls a javascript fuction that will execute a mailform script. everything is working fine, but I would like the output window from the mail formscript to open in a popup,
-
This is the second time in a week this has happened. The last time I got them back by right clicking on a blank spot in the toolbar. That will not work this time. I there anything else I can do to make it work right. It is working fine on Explorer 8,
-
Regular expression evaluation with logical operator
Hi All, I am bit confuse with expression evaluation with logical operator. I am trying to understand below expression. eXa.getTrue() && eXa.getFalse() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as false and True Count: 1 False Count:
-
Netscape.ldap.LDAPException: Server down (80); Unknown error
Hi, We are facing a strange problem in our staging environment. It has two Sun one Dir. server 5.2 running in multi-master mode befind a load-balancer. A Connection Pool has been defined on the Application server for the same with minConn=5 and MaxCo
-
When I click on a link in an email I get an error message. Only just started happening
When I click on a link in an email I get an error message saying: General failure. The URL was xyz.... An error occurred when sending the command to the application