LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-18-2003, 02:46 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Installing Java


Hello everyone.
Well, I have a topic about Java and installing Java.
A little info:

I am installing IBM DB2 database on one of our servers to test. The installation went fine, however, I am having a hard time getting the GUI tool up and running. The GUI relies on Java.

The installation says it requires the IBM JRE 1.3. I went ahead and installed it from IBM.

However, when I try and execute the file to run the GUI, I get the following output:

./db2fs: line 14: db2javit: command not found

Obviously, I am missing something because it cannot find the db2javit.

Anyone have any idea on how I can figure this out?

Thanks everyone.

Tarballed
 
Old 02-18-2003, 02:59 PM   #2
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
Sounds like db2javit is not in your PATH?
 
Old 02-18-2003, 03:06 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
I started thinking about that a little bit after I posted.

My question is, I have both JRE 1.31 and 1.4 installed on the machine. I must admit, that I am new to Java.

How do I make sure that I can put db2javit goes into my path correctly? Can I search for the command?

Any help would be great.

THank you.

tarballed
 
Old 02-18-2003, 04:32 PM   #4
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
To see which JVM is in your path, get a command line and type

java -version

This will tell you what java version is in your path. To see your path, type

echo $PATH

Next, you modify your path to include the java version you want. This is will be set in your .bash_profile.

To change the PATH globally, so everyone finds the JVM you want, you'll have to edit /etc/profile.

HTH

Cheers--
Charles
 
Old 02-18-2003, 04:40 PM   #5
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Thanks everyone for your help.
Here is some output from commands I executed:

[root@ubergeek opt]# java -fullversion
java full version "J2RE 1.4.0 IBM build cxia32140-20020917a"

[root@ubergeek opt]# java -version
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
Classic VM (build 1.4.0, J2RE 1.4.0 IBM build cxia32140-20020917a (JIT enabled: jitc))

[root@ubergeek opt]# echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/opt/IBMJava2-14/jre/bin:/root/bin
[root@ubergeek opt]#

From what I can tell, I have everything set correctly. But still, when I try and execute this file, to start the control center for the IBM DB2, I get the same error:

./db2cc: line 15: db2javit: command not found

Grrrrrrrrrrrr. Anyone have more suggestions? I feel like I am so close, but missing something very small.

Thanks.

Tarballed
 
Old 02-18-2003, 05:26 PM   #6
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
At a command line type

whereis db2javit

What is the output?

Cheers--
Charles
 
Old 10-14-2003, 09:41 AM   #7
byfaithalone
LQ Newbie
 
Registered: Sep 2003
Location: Little Rock, AR
Distribution: SUSE 8.2
Posts: 23

Rep: Reputation: 15
I am very new to Linux. I am encountering the same issue as stated earlier in this thread. Here is the method I encounter:

db2inst2@AFLINUX2:~> db2cc
sh: line 1: /opt/IBMJava2-131/jre/bin/java: No such file or directory
DB2JAVIT : RC = 127

The path /opt/IBMJava2-131/jre/bin/java does not exist on my box. I am not sure where I need to include the IBM JAVA Path in my script. Also, I have gone into YAST and have uninstalled packages related to JAVA 1.4.1. Does this mean that all apps that require JAVA support will point to 1.3.1? How can I have both versions of JAVA installed on my linux box?

Here is an example of my etc/profile script:

#
# Make path more comfortable
#
if test -z "$PROFILEREAD" ; then
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin
for dir in $HOME/bin/$CPU $HOME/bin ; do
test -d $dir && PATH=$dir:$PATH
done
test "$UID" = 0 && PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
for dir in /var/lib/dosemu \
/usr/games \
/opt/bin \
/opt/gnome2/bin \
/opt/gnome/bin \
/opt/kde3/bin \
/opt/kde2/bin \
/opt/kde/bin \
/usr/openwin/bin \
/opt/cross/bin
do
test -d $dir && PATH=$PATH:$dir
done
unset dir
export PATH
fi
 
Old 08-27-2004, 09:23 PM   #8
lmelliot
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
byfaithalone:

To use db2cc I had to update my JDK_PATH for db2 by entering:

db2 update dbm cfg using JDK_PATH /opt/IBMJava2-14
 
  


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
Help installing java Lakota Mandriva 18 12-12-2004 02:02 AM
installing java kshatriyarules Programming 2 12-02-2004 11:04 AM
Installing Java VM? broham Arch 1 11-12-2004 02:33 AM
Installing Java? loganwva Linux - General 4 02-17-2002 03:44 AM
Installing Java mrl Linux - Newbie 4 05-23-2001 02:19 PM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration