LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-06-2007, 05:21 AM   #1
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
java on linux, is it installed or not?


so here is my problem..

Code:
mfc-falter:/usr/java # rpm -i j2re-1_4_2_16-linux-i586.rpm
        package j2re-1.4.2_16-fcs is already installed
mfc-falter:/usr/java # rpm -e j2re-1_4_2_16-linux-i586.rpm
error: package j2re-1_4_2_16-linux-i586.rpm is not installed
for some reason i need to remove my current JRE and install JRE 1.4.x

can some help me with this one..i tried to remove everything via yast..
when search the string "jre" comes to match. i just want to remove everythin belonging to jre and install the jre 1.4.x

thanks
 
Old 12-06-2007, 05:24 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try
Code:
#rpm -e j2re
You should not include the rpm extension when uninstalling.
 
Old 12-06-2007, 05:33 AM   #3
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Code:
mfc-falter:/usr/java # rpm -e j2re
touch: cannot touch `/usr/java/j2re1.4.2_16/lib/rt.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_16/lib/jsse.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_16/lib/charsets.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_16/lib/ext/localedata.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_16/lib/plugin.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_16/javaws/javaws.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_16/lib/unpack': No such file or directory
error: %preun(j2re-1.4.2_16-fcs.i586) scriptlet failed, exit status 1
and this means?
another question, how can i check which versions are installed on the system?
 
Old 12-06-2007, 05:39 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by laucian View Post
another question, how can i check which versions are installed on the system?
Code:
java --version
 
Old 12-06-2007, 05:41 AM   #5
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
mfc-falter:/usr/java # java --version
bash: java: command not found
so this 100% there is java installed..
or might be some other reason?
 
Old 12-06-2007, 05:44 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Something went wrong when rpm was trying to run one of the pre uninstall scripts. Try the following
Code:
#rpm -e --noscripts j2re
This may leave some files in /usr/java/j2re1.4.2_16 so you have to delete this directory yourself if you no longer need it.
 
Old 12-06-2007, 05:47 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by laucian View Post
so this 100% there is java installed..
or might be some other reason?
to check the version of java thats installed on your system, try
Code:
/usr/java/j2re1.4.2_16/bin/java --version
 
Old 12-06-2007, 06:01 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,787

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by reddazz View Post
to check the version of java thats installed on your system, try
Code:
/usr/java/j2re1.4.2_16/bin/java --version
That should be "-version" (one dash only).

Given the path and if the installation isn't broken, the only possible answer will be version 1.4.2_16.
 
Old 12-06-2007, 06:27 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
That should be "-version" (one dash only).
You are right there. I make this error quite a lot because I am used to the GNU tools.
 
Old 12-06-2007, 07:29 AM   #10
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
thank you all..
i solved my problem as i used yast to remove every single java package and reinstall only the one i needed..

installing software on linux is always a chaos for me..does anyone know a good guide or tutorial explaining in detail "how to install software" on linux machines..?
 
  


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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 03:13 AM
Both Java 1.4.2 and 1.5.0 installed. Why? Mandelbrot Linux - General 2 09-07-2006 10:38 AM
Synaptic Package Manager shows 'java-common' and 'java-gcj-compat' as Installed. swiadek Ubuntu 3 02-12-2006 12:54 PM
I have Suse Linux 8.0 installed on my system & I don't know how to compile Java file? dukehazord Programming 8 08-07-2004 11:29 AM
using aim express w/ linux firefox and java installed? webazoid Linux - Software 3 07-08-2004 10:07 AM

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

All times are GMT -5. The time now is 12:27 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