Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: Environment Variable (Linux bash shell)


Message #1 by Scott Taylor <scott.taylor@4...> on Tue, 8 Oct 2002 15:29:43 +0000
java, not j2ee.
  ----- Original Message ----- 
  From: Scott Taylor 
  To: Java 2 Enterprise Edition 
  Sent: Tuesday, October 08, 2002 12:02 PM
  Subject: [j2ee] RE: Environment Variable (Linux bash shell)


  I understand that it should be /.bash_profile but this does not seem to work 
  when I add the java reference. Here is that file:

  # .bash_profile

  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
          . ~/.bashrc
  fi

  # User specific environment and startup programs

  PATH=$PATH:$HOME/bin:/usr/lib:$HOME/j2sdkee1.3.1/bin:/usr/local/apache2/bin:/root/pointbase/tools/server
  BASH_ENV=$HOME/.bashrc
  USERNAME="root"
  J2EE_HOME=$HOME/j2sdkee1.3.1

  export USERNAME BASH_ENV PATH J2EE_HOME

  I get the following when I type j2ee -version:

  [root@l... root]# j2ee -version
  /root/j2sdkee1.3.1/bin/j2ee:/java/re/jdk/1.3.1_02/latest/binaries/linux-i386/bin/java: 
  No such file or directory

  Any ideas?

  Regards

  Scott





  On Tuesday 08 October 2002 2:54 pm, you wrote:
  > Where are you setting the environment now?  .bash_profile? .bashrc?  What
  > you get when you type:
  >
  >     java -version
  >
  > Jeff
  >
  >   ----- Original Message -----
  >   From: Scott Taylor
  >   To: Java 2 Enterprise Edition
  >   Sent: Tuesday, October 08, 2002 11:45 AM
  >   Subject: [j2ee] RE: Environment Variable (Linux bash shell)
  >
  >
  >   Some people say to type at the command line:
  >
  >   export PATH=.:$PATH:/usr/java/j2sdk1.4.0:/root/j2sdkee1.3.1:
  >
  >   others say:
  >
  >   PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0_02/bin/
  >   NPX_PLUGIN_PATH=/usr/java/j2sdk1.4.0_02/jre/bin/ControlPanel
  >
  >   But I am sure you have to edit /.bash_profile.
  >
  >   Any ideas?
  >
  >   Scott
  >
  >   On Tuesday 08 October 2002 2:34 pm, you wrote:
  >   > I did not understand what do you mean by exact syntax command?
  >   >
  >   > Murthy
  >   >
  >   > -----Original Message-----
  >   > From: Scott Taylor [mailto:scott.taylor@4...]
  >   > Sent: Tuesday, October 08, 2002 5:30 PM
  >   > To: Java 2 Enterprise Edition
  >   > Subject: [j2ee] Environment Variable (Linux bash shell)
  >   >
  >   > I have searched every documentation and I have asked this question
  >   > several times in several forums and java mail lists, and not one person
  >   > has been able
  >   > to give me the definitive answer.
  >   >
  >   > If I have the following packages:
  >   >
  >   > /usr/java/j2sdk1.4.0
  >   > /root/j2sdkee1.3.1
  >   >
  >   > What is the exact syntax command to have these in my environment?
  >   >
  >   > Regards
  >   >
  >   >
  >
  >



  Return to Index