1) This isn't a Tomcat question: if you'd done the same in a java
application, you'd have found the same thing. There are forums, newsgroups,
and mailing lists for Java questions.
2) You're confusing environment variables with properties. Properties are
defined either by loading them from a
That said, do this:
Properties props = System.getProperties();
props.put(MYVAR, MYVALUE);
System.setProperties(props);
Then later on in your program you can get the value
to your hearts content. Or even in another class or
package.
Or use a wrapper to load shell variables. But if all
you want
Hi,
I basically want to load the shell variables. Can you tell me how I can do that?
What is the wrapper class all about you mentioned?
Thanks for your help.
Thanks,
Nilanjan
***
Tim O'Neil wrote:
That said, do this:
You write a shell script that loads the variable into a
java parameter to the jvm;
#!/bin/sh
java -DMYVAR=$MYVAR myCoolClass
Use the root shell if possible, not the k shell, your code
below looked like K Shell parlance.
At 09:41 AM 8/7/2001, you wrote:
Hi,
I basically want to load the shell