LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-10-2004, 05:04 PM   #1
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
uninstall java 1.4 for DB2 8.1 install


I have not been able to find the answer to this question so far. If it is out there I am sorry! I have java 1.4.2 installed and I need to remove it. I am trying to get the IBM JDK 1.3.1 installed and configured so that I can install DB2 8.1. I have Red Hat WS 3.0 installed and am using KDE for the desktop. I used the RPM to install both but I need to remove them both and start over.

mike
 
Old 08-10-2004, 05:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, and welcome to LQ,


man rpm
/ERASE OPTIONS

should answer that question.


Cheers,
Tink
 
Old 08-11-2004, 11:09 AM   #3
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
thanks for the docs. however in my current newbie skill level I am unable to remove the java version.

rpm -e [--allmatches] [--nodeps] [--noscripts] [--notriggers] [--repackage] [--test] j2re-1_4_2_05-linux-i586.rpm
error: package [--allmatches] is not installed
error: package [--nodeps] is not installed
error: package [--noscripts] is not installed
error: package [--notriggers] is not installed
error: package [--repackage] is not installed
error: package [--test] is not installed
error: package j2re-1_4_2_05-linux-i586.rpm is not installed


Is my syntex correct? do I need to be in a certain folder to issue the command?

mike
 
Old 08-11-2004, 12:41 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Things in square brackets are optional, they're
never to be taken as literal square brackets.

You should be starting with
rpm -e j2re-1_4_2_05-linux-i586

If that doesn't work read the error messages.


Cheers.
Tink
 
Old 08-11-2004, 01:22 PM   #5
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
# rpm -e j2re-1_4_2_05-linux-i586
error: package j2re-1_4_2_05-linux-i586 is not installed

is there a way to see what RPM have been installed?

mike
 
Old 08-11-2004, 02:14 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
man rpm ;)
/QUERY

Honestly, you should learn to read man-pages.

People might get the impression that you're completely
lazy if you keep asking stuff like that without an
indication that you've read but not understood the
man-page. And personally I'm quite reluctant to
run a non-payed lookup-service ;)


rpm -qa | grep -i java


Cheers,
Tink
 
Old 08-11-2004, 02:31 PM   #7
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
thanks for the info. I am a complete newbie and was getting confused with the syntex the way it is described in the manual. I am starting to get the hang of it now though.

the results showed this

rpm -qa | grep -i java
IBMJava2-SDK-1.3.1-7.0
gcc-java-ssa-3.5ssa-0.20030801.47
redhat-java-rpm-scripts-1.0.2-2
gcc-java-3.2.3-39
javamail-20031006-1

so it seems that I did not install the java 1.4 correctly in the first place. Thanks again for your help

mike
 
Old 08-11-2004, 02:44 PM   #8
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
After issue of this command I get an error message

./db2setup
DBI1190I db2setup is preparing the DB2 Setup Wizard which will
guide you through the program setup process. Please
wait.


/home/mike/Desktop/downloads/009_ESE_LNX_32_NLV/db2/linux/install/db2jinst: line 130: 5877 Segmentation fault $JAVA_PATH/$JAVA_INTERPRETER $JAVA_OPTIONS -cp $JAVA_CLASSPATH $DB2SetupRun "$@" 2>/tmp/db2setup.err.running



when I type java I get this.

$ java
libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java and /usr/bin/javac
master links required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
[mike@isi install]$

Is there any easy ways to fix what looks like a messed up java install?

mike
 
Old 08-11-2004, 03:22 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'd assume that this script is part of this package:
redhat-java-rpm-scripts-1.0.2-2

Try a
rpm -ql redhat-java-rpm-scripts-1.0.2-2
and see whether it actually is.


If it is part of that (and you already did install the
IBM jdk that DB2 wants) you could erase the
scripts as well, and create a java.sh script
in /etc/profile.d that sets up the environment
variables appropriately ...


Cheers,
Tink
 
Old 08-12-2004, 01:48 PM   #10
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
thanks again for your help and patience with my newbie skills.

after issuing the command

rpm -ql redhat-java-rpm-scripts-1.0.2-2
/usr/sbin/javaconfig

does this mean that I need to edit the javaconfig file or erase it and reset the script like you mention above.

mike
 
Old 08-12-2004, 02:21 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You're more than welcome!

Either should work ... I'm not familiar enough
with rpm though to know for sure how rpm
would handle that manually modified file
in case you decided to un-install or update
it later on. My personal approach would be
to remove the rpm it belongs to, and create
a shell script as I mentioned, but then I'm a
control-freak when it comes to my computers ;)


Cheers,
Tink
 
Old 08-19-2004, 04:34 AM   #12
ollebil
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
You don't need to uninstall 1.4. Just download and install IBM's JDK 1.3.1 somewhere and do something like

export JAVA_HOME=/opt/IBMJava2-131

check your path
echo $PATH

and if your JDK 1.4.2 is included there you edit it to point to IBM's JDK instead. Something like

export PATH=.....*snip*.....:/root/bin:/opt/IBMJava2-131/bin

if "db2_install" still doesn't work, try "export LD_ASSUME_KERNEL=2.2.5", and retry the "db2_install"

then try ./db2setup.

It worked for me, on Fedora Core 2

//Olle
 
Old 08-23-2004, 08:50 AM   #13
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
not to sound like a total newbe but where do i issue those commands? on a command line?

mike
 
Old 08-23-2004, 08:54 AM   #14
ollebil
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
Hello

to answer Your question: Yes, on the command line, logged in as "root"

but try this url instead:
http://www-106.ibm.com/developerwork...ary/l-ss4-db2/

You will find all the information You need there,

regards Olle.
 
Old 08-23-2004, 02:54 PM   #15
greatwhite99
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
thanks for the link. I am still having troubles with the IBM docs and getting the IBM SDK correctly working to get my DB2 setup to run.

this is what I get

./db2setup
DBI1190I db2setup is preparing the DB2 Setup Wizard which will
guide you through the program setup process. Please
wait.


/downloads/db2/009_ESE_LNX_32_NLV/db2/linux/install/db2jinst: line 130: 13231 Segmentation fault $JAVA_PATH/$JAVA_INTERPRETER $JAVA_OPTIONS -cp $JAVA_CLASS PATH $DB2SetupRun "$@" 2>/tmp/db2setup.err.running
[root@isi-redhat 009_ESE_LNX_32_NLV]#

Tinkster mentioned a script. Should I add these lines to my .bash_profile?

thanks

mike

Last edited by greatwhite99; 08-23-2004 at 02:57 PM.
 
  


Reply



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:unable to install db2 ese on linux tejpatil Linux - General 0 02-13-2004 01:24 PM
java uninstall twcinpa Linux - General 9 12-19-2003 02:20 PM
Multiple JAVA Versions / DB2 8.1 / SUSE 8.2 byfaithalone Linux - Newbie 1 10-15-2003 02:35 PM
cannot uninstall java bnujos Linux - General 3 06-25-2003 11:36 AM
DB2 & Java problem/ Please HELP! Bogdan Linux - Software 0 05-06-2002 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 AM.

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
Open Source Consulting | Domain Registration