LinuxQuestions.org
Review your favorite Linux distribution.
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 06-08-2004, 03:39 AM   #1
happy78
Member
 
Registered: Aug 2003
Posts: 50

Rep: Reputation: 15
Lightbulb j2sdk is already installed ...?


Hi all,

I'm running into problem of reinstalling J2SDK. Originally I placed it at /usr/local/java.
I removed, then reinstall it. However, this error messeage popped up:

"package j2sdk-1.4.2_04-fcs is already installed"

I have used find, whereis and slocate to look for that file. But it's no where to be found.
I have looked at a similar problem posted in this forum, but it didn't have the answer.

Could it be my profile's problem? I did an echo $PATH, and the result is:

package j2sdk-1.4.2_04-fcs is already installed

Another question is: where is the best place to install JAVA so that everyone else can use?
Is it /usr/local or /usr?

Thank you all for your time and assistance,

Happy
 
Old 06-08-2004, 04:49 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
It doesn't really matter if you install it to /usr/local or /usr. I prefer installing all Java-related software and documentation under /usr/local/java.

In order to make java easily accessible to the users you must add the bin subdirectory to your PATH variable. So if you have Java installed to /usr/local/java/j2sdk-1.4.2.04 you could add this line to your /etc/profile:
export PATH=$PATH:/usr/local/java/j2sdk-1.4.2.04/bin
You may also need to make use of the $JAVA_HOME and $CLASSPATH environment if Java apps still doesn't work. Read the Java docs for info on how to do this.


Håkan
 
Old 06-08-2004, 04:51 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Oh, and as for the package not installing - according to rpm it is still installed since you didn't uninstall the rpm.

You can grab the j2sdk self-extracting "bin" package over at http://java.sun.com if the rpm is giving you a headache.


Håkan
 
Old 06-08-2004, 05:15 PM   #4
happy78
Member
 
Registered: Aug 2003
Posts: 50

Original Poster
Rep: Reputation: 15
Unhappy can't find the it

Hi there,

Thank you for replying to my post.
I just can's seem to resolve this problem. I have tried ./j2sdk1.4.* and rpm -iv j2sdk*.rpm. But the "package j2sdk-1.4.2_04-fcs is already installed" keeps popping up.

I logged out and logged back in as root...then run "echo $PATH" ...and found this :

"/usr/local/java/j2sdk1.4.2_04/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin :/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:./"

/usr/local/java/j2sdk1.4.2_04/bin: is still in my PATH. Does this cause any problem since i removed j2sdk from /usr/java/j2sdk* ?

How do I remove it from PATH?
and how do I resoved the "package j2sdk-1.4.2_04-fcs is already installed" ?

Thank you for your time and assistance again...

Happy
 
Old 06-08-2004, 05:37 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
The thing is, rpm thinks the package is installed since it says so in its database. Perhaps it's possible to "upgrade" using rpm -Uvh filename.rpm? I haven't used rpm-based distros in a while so I realize I'm not too much of help to you.

Perhaps you should direct your query to the distribution-specific subforum here that suits your installation.

The $PATH variable is most likely set in /etc/profile but it could be somewhere else too (/etc/sysconfig rings a bell?). But no, it doesn't actually hurt to have a non-existing directory in your $PATH, it's just a bit annoying.


Håkan
 
  


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
j2sdk install Larke Linux - Software 10 06-25-2004 02:11 PM
Can't Delete J2SDK LinuxNoob17 Linux - Software 10 05-03-2004 09:24 PM
I Installed j2sdk-1_4_1_02-fcs-linux-i586.rpm but still I am not able to chat yahoo DrGenetix Linux - Software 7 01-26-2004 07:17 AM
PROBLEMS WITH j2sdk-1.4.2- jon_k Linux - Software 5 08-02-2003 05:29 PM
I have installed j2sdk-1_4_0-linux-i386-rpm.bin.pls tell me how to set the path Harish_f Linux - General 2 05-06-2002 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:08 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
Open Source Consulting | Domain Registration