The issue is, he doesn't know which drive letter he is being assigned
in windows....
the start.sh script would need to call
DIRECTORY = `cd`
and then base JAVA_HOME on this....
but don't ask me how to do this in deMeSDOS....
Andrew
On 26/05/2006, at 1:15 PM, Harshal Joshi wrote:
Hi,
I am sending sample command which u can write in bat file...
cd\
set JAVA_HOME = C:\jdk142_04;
set CATALINA_HOME = C:\Tomcat 5_0_28;
just write appropriate path of your Java & Tomcat in above
code...now save
above file with ext. of bat & run it...
I hope this is what you want & will help you to solve your problem.
Best of
Luck...
Cheers,
Harshal Joshi
-----Original Message-----
From: Markus-Alexander Metz [mailto:[EMAIL PROTECTED]
Sent: Friday, May 26, 2006 4:21 PM
To: Tomcat Users List
Subject: Re: Tomcat on a Memory Stick
Hi Andrew
Thanks for your feedback. I'm running the stick under windows based
systems..
Java (jre and SDK) is also installed on the stick. You wrote:
Why do you not define JAVA_HOME and CATALINA_HOME in the startup
scripts?
This would be the solutions I was seeking. But how does this script
has to
look like? I guess I have to write a .bat file and set the environment
variables inside. And start this .bat File by the autorun.inf.
But how has this script looks like to set the environment
variables? Does
someone has any idea, cause I'm not very familiar in writing such
scripts?
Thanks for your help
Markus
2006/5/26, Andrew Miehs <[EMAIL PROTECTED]>:
I am not sure I understand the problem?
Are you running on Windoz or a UNIX(tm) based system?
Why do you not define JAVA_HOME and CATALINA_HOME in the startup
scripts?
How do they start TOMCAT in your scenario - why don't you just do a
'pwd'
and base the other variables relative to that?
I would also put JAVA on your stick - so that you know where
your JRE is.
Andrew
PS: Be careful with sticks - they have have a limited number of write
cycles per
block before the block dies..... ext2 has been reported to kill them
quite quickly
(especially the ones that don't move blocks around)...
On 26/05/2006, at 11:07 AM, Markus-Alexander Metz wrote:
Hi David
Thank you very much for your feedback :-) ... I have no problems
when
running tomcat on my memory stick ... the problem is another one.
For
getting running tomcat you have define CATALINA_HOME and JAVA_HOME.
This
values have to be defined on every pc, on which I wanna run tomcat.
So the
app server isn't portable anymore.
It would be nice, if tomcat would read this values for example from
a config
file so that tomcat became portable. And I'm looking for a
solution, which
would solve this problem, so that tomcat is portable an I could
use my
flavour development environment at home, as well as in my job
Perhaps you see a solution for my problem. Thanks for all
Markus
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]