Debian Linux and JAVA - _OPTS and _HOME

View: New views
3 Messages — Rating Filter:   Alert me  

Debian Linux and JAVA - _OPTS and _HOME

by Massan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

What file I should modify to get these JAVA commands to work. I have tried catalina.sh and almost all files in bin folder. Should it be like:

export JAVA_OPTS ...

And yes OS is Debian Linux.

Thanks buddys !

Re: Debian Linux and JAVA - _OPTS and _HOME

by Carsten Pohl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you tried

JRE_HOME=/usr/lib/jvm/java-6-sun/jre/ ./catalina.sh run

or in your case

JAVA-OPTS=-Dsth ./catalina.sh run
..


Regards,
Carsten

----- Original Message -----
From: "Massan" <grant.massan@...>
To: users@...
Sent: Monday, 2 November, 2009 15:27:31 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Debian Linux and JAVA -  _OPTS and _HOME


Hi,

What file I should modify to get these JAVA commands to work. I have tried
catalina.sh and almost all files in bin folder. Should it be like:

export JAVA_OPTS ...

And yes OS is Debian Linux.

Thanks buddys !
--
View this message in context: http://old.nabble.com/Debian-Linux-and-JAVA----_OPTS-and-_HOME-tp26157106p26157106.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Debian Linux and JAVA - _OPTS and _HOME

by awarnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Massan wrote:
> Hi,
>
> What file I should modify to get these JAVA commands to work. I have tried
> catalina.sh and almost all files in bin folder. Should it be like:
>
> export JAVA_OPTS ...
>
> And yes OS is Debian Linux.
>
To answer your question directly, and in general :
You should create the file bin/setenv.sh if it is not there, then insert
your environment values there.
This file is read by catalina.sh if it exists.

About Debian in particular, have a look also at /etc/init.d/tomcatxxx
(where xxx is your tomcat version, which you did not say), and check how
it does things (what it calls to start tomcat, in what order).



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...