LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2011, 12:27 AM   #1
soscode
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Configure Environment.


Hi Experts, would appreciated your assistance on this matter, i am having difficulties to set an environment for Financial Process Exchange server. i am running on CentOS release 5.5.

[root@Nagios ~]# $PATH
-bash: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/j2sdk1.4.2_16/bin:/root/bin:/usr/java/j2sdk1.4.2_16/bin: No such file or directory


Can you advise what should i do next ? I have installed the J2sdk1.4.2 and file has located here
/usr/java
drwxr-xr-x 8 root root 4096 Mar 15 03:55 j2sdk1.4.2_16


in bash_profile i also added
# .bash_profile

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

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH=$PATH:/usr/java/j2sdk1.4.2_16/bin
unset USERNAME

Please help why i am still could found the directory.
 
Old 03-14-2011, 04:47 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ. .. . CentOS, RHEL, Fedora : The default set up for java is :

1) su
2)
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/j2sdk1.4.2_16/bin/java 2

3) /usr/sbin/alternatives --config java


... Nothing else is usually required.
...
 
Old 03-15-2011, 09:34 PM   #3
soscode
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ. .. . CentOS, RHEL, Fedora : The default set up for java is :

1) su
2)
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/j2sdk1.4.2_16/bin/java 2

3) /usr/sbin/alternatives --config java


... Nothing else is usually required.
...


here is the path of java location
/etc/alternatives/java
java -> /usr/java/j2sdk1.4.2_16/bin/java

while i am running ./install.sh i found out these error

PLUGIN_JAVA_HOME
./install.sh: line 17: [/usr/java/j2sdk1.4.2_16: No such file or directory
./install.sh: line 24: [/home/EX00002244/fpx: No such file or directory
/home/EX00002244/fpx/lib/activation.jar:/home/EX00002244/fpx/lib/clone.jar:/home/EX00002244/fpx/lib/extra.jar:/home/EX00002244/fpx/lib/jca.jar:/home/EX00002244/fpx/lib/jce.jar:/home/EX00002244/fpx/lib/jcert.jar:/home/EX00002244/fpx/lib/jcrypto.jar:/home/EX00002244/fpx/lib/jssl.jar:/home/EX00002244/fpx/lib/log4j-1.2.8.jar:/home/EX00002244/fpx/lib/looks-1.2.1.jar:/home/EX00002244/fpx/lib/images.jar:/home/EX00002244/fpx/lib/looks-1.1.3.jar:/home/EX00002244/fpx/lib/mail.jar:/home/EX00002244/fpx/lib/sell_plugin.jar:/home/EX00002244/fpx/lib/images.jar:/home/EX00002244/fpx/lib/bcprov-jdk14-131.jar
Initialise user operating system level.........
FPXLog : Running in console mode!!!!!!
Installing in silent mode...
Error in creating plugin.xml. Please re-unzip this plugin because the path selected is not appropiate!!!
Error in starting silent installation : java.lang.Exception: Error in creating plugin.xml. Setup could not proceed



Please refer vi install.sh
export PLUGIN_JAVA_HOME=/usr/java/j2sdk1.4.2_16
echo PLUGIN_JAVA_HOME
export FPX_PLUGIN_HOME=/home/EX00002244/fpx

if ["$PLUGIN_JAVA_HOME" = ]
then
echo PLUGIN_JAVA_HOME
echo please set PLUGIN_JAVA_HOME
exit 1
fi

if ["$FPX_PLUGIN_HOME" = ]
then
echo please set FPX_PLUGIN_HOME
exit 1
fi


was any directory missing ? please help..thanks
 
Old 03-16-2011, 03:29 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
While I am running ./install.sh
Which " ./install.sh " ? ?
 
Old 03-16-2011, 04:51 AM   #5
soscode
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
what is that means on Which " ./install.sh "
 
Old 03-16-2011, 05:48 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
In post # 3 your text says :
"" while I am running ./install.sh I found out these error
PLUGIN_JAVA_HOME
./install.sh: line 17: [/usr/java/j2sdk1.4.2_16: No such file or directory
./install.sh: line 24: [/home/EX00002244/fpx: No such file or directory""


And I guess, that the "install.sh" is from an application.
Some typos in "install.sh" , it seems :
The square brackets : [/usr............
And : [/home.....
( install.sh, lines 17 and 24.) Suggest : Edit the text.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure Java Runtime Environment in Debian 4.0 ? sco1984 Debian 13 12-16-2009 02:48 PM
Trying to configure graphical environment on Ubuntu 9.04 Server rconner Linux - Newbie 8 11-25-2009 12:13 AM
configure script sends bad switches to daughter configure scripts Wells Linux - Software 7 10-10-2008 04:38 PM
How To Configure Pure IPv6 Environment kerroppa Linux - Networking 3 06-07-2007 01:58 PM
Need help setting right environment variables:configure scripts can't find libraries. z-vet Linux - Newbie 4 08-16-2004 06:10 PM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration