12-08-2015
The problem is: the java creates a child process that does not have environment variables like you would expect.
The script java executes has to source the startup files in your account (or where ever) to define PATH, and other important environment variables. This is a problem with the script, not necessarily java.
Example:
Use the dot operator . /path/to/.profile
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I was wondering if it was possible to call a unix command directly from a Java program during run-time. This command could very very basic e.g. "ps -ef" returned as a string, all I need is a starting place so if anyone has any suggestion or examples I would be very grateful (2 Replies)
Discussion started by: QUartz Ite
2 Replies
2. Shell Programming and Scripting
Hey all,
My boss tasked me with the job to write a script which would invoke various java programs, the thing is I don't know much about shell scripting so would you experts help me out?
Here is the requirement
- 2 applications written in java: App_A and App_B
-... (0 Replies)
Discussion started by: mpang_
0 Replies
3. UNIX for Dummies Questions & Answers
Having problem in connecting my gui java program to postgreaql database. I first used setenv classpath /home/share/postgresql/java/postgresql.jar:proj1, where proj1 is my folder conatining all java and class file, to set classpath. Then javac *.java. Then java proj1.Login. It gives me... (2 Replies)
Discussion started by: uci
2 Replies
4. Shell Programming and Scripting
Hi:
I need to invoke a perl script from a java applet program in UNIX operating system.. Can you please suggest me!!! (4 Replies)
Discussion started by: grajesh_955
4 Replies
5. Shell Programming and Scripting
Hi All,
i dont have any idea about perl scripting...
i need some suggestion so that i can put my effort to find out the solution:D
let me explain....one of my tedious task which will taken care by Unix shell script which i prepared.
its a kind of routine work that i am running the... (4 Replies)
Discussion started by: Shahul
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I need to execute a java program in a shell script.I then need to assign the value being returned by the program into a unix variable.Is there any way i can access the value in a variable in java program?
As in if my java code has a variable,
.
.
.
.
valueA =x.getValue()
.....
can... (1 Reply)
Discussion started by: inquisitive101
1 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to test one unix shell script in dev environment. But I'm not sure how to pass the environment in my java program calling code. I'm trying to use -DconsumerEnv="DEV" but unfortunately I get 'null' while trying to print the value from java class.
System.out.println("Environment: "+... (4 Replies)
Discussion started by: Pramit
4 Replies
8. Shell Programming and Scripting
Hi All,
well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this...
Please see the below details...and read the details carefully.
I have written some code, logic is
1)from... (4 Replies)
Discussion started by: aish11
4 Replies
9. Shell Programming and Scripting
I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ssh hostname path ksh HC_Report.ksh>out.html
...but it generates the HTML file in
remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies
LEARN ABOUT DEBIAN
airport2-config
AIRPORT2-CONFIG(1) General Commands Manual AIRPORT2-CONFIG(1)
NAME
airport2-config - Configurator for the Apple AirPort Extreme Base Station ("Snow")
SYNOPSIS
airport2-config
DESCRIPTION
airport2-config allows you to manage your AirPort base station, just like the AirPort software on Mac OS X.
OPTIONS
airport2-config accepts no command-line options. airport2-config is a wrapper script around the Airport2BaseStationConfigurator.jar jar
file located in /usr/share/java/airport-utils.
You can set the JAVACMD environment variable to use a specific JVM instead of the one chosen by the wrapper script. Set the DEBUG environ-
ment variable to 1 to get the debug output from the wrapper script.
ENVIRONMENT VARIABLES
DEBUG Set this variable to 1 to get the debug output from the wrapper script.
JAVACMD
The full path to the Java Virtual Machine to use. By default, the wrapper uses JAVACMD; if it is not set, it looks for
JAVA_BINDIR/java, then for JAVA_HOME/bin/java before looking for a java executable in the PATH. In the latter case, the JVM used can
be configured using the Debian alternatives system (see update-alternatives(8)).
JAVA_HOME
The full path where your JDK/JRE is installed.
JAVA_BINDIR
The full path to the directory where the java executable is located.
JAVA_ARGS
Extra command-line arguments to be passed to the Java Virtual Machine.
AUTHOR
airport2-config was written by Jon Sevy <jsevy@cs.drexel.edu>.
This manual page was written by Julien BLACHE <jblache@debian.org>, for the Debian project (but may be used by others).
May 20, 2006 AIRPORT2-CONFIG(1)