View Full Version : VPS limitations - setting variables, software

03-03-2005, 07:51 AM
I am VPS deluxe client (7 days).

Problem: setting a variable (JAVA_HOME=/usr/local/java)

Background: I installed J2SDK and Laszlo Presentation Server (which includes Tomcat)

I tried using the shell command in site manager to set a variable or global variable, tried (set, export, setenv, etc) nothing worked, however (dir, env, ln -s) all work.

Note: under another topic is was indicated that Westhost wouln't allow Tomcat to run under a deluxe package.

03-03-2005, 10:24 AM
To set the variable, you will need to login via a shell and edit your /.bashrc file.


03-03-2005, 10:36 AM
Thanx, I'll try editing the .bashrc file tonight (it might be controled by the root, but I'll follow the directions in the Tips)

I tried the following commands on the shell command line in site manager and nothing worked except the basic commands (dir env ln -s etc)

set JAVA_HOME=/usr/local/java
export JAVA_HOME=/usr/local/java
JAVA_HOME /usr/local/java
setenv JAVA_HOME /usr/local/java
JAVA_HOME=/usr/local/java/; export JAVA_HOME

Thanx for the help I'll try it...

03-03-2005, 02:25 PM
You'll need this one:
export JAVA_HOME=/usr/local/java

but... its not guaranteed that java jre will recognize it.

Otherwise Torrin's solution will be a better bet (use a startup script).