LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-21-2004, 06:22 AM   #1
DrGenetix
LQ Newbie
 
Registered: Jan 2004
Location: India
Posts: 4

Rep: Reputation: 0
I Installed j2sdk-1_4_1_02-fcs-linux-i586.rpm but still I am not able to chat yahoo


Hiii
I am a new user to Linux and recently downloaded a java application for Mozilla I installed it from the same directory where it was saved after download i.e
/root/downloads/
And now I am lost
The download seemed me to be fine but when I check the version for satisfation of installation it says java command not found, and my Mozilla hasn't been updated with the plug-in. plz help me any one
Thanx
 
Old 01-21-2004, 06:35 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
put the java files somwhere else!!! (/usr/local/java is a good place)

and check this out:

http://plugindoc.mozdev.org/linux.html#Java

in my laptop, i have j2re installed here:

/usr/local/j2re1.4.2_01/

hth.
 
Old 01-21-2004, 08:30 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 11.10
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
I also recommend to put the java files somewhere else. But I think you have to add the java binaries to the PATH.
For example I have added this line in my .bashrc

PATH=/usr/java/jdk1.3.1_02/bin/:$PATH

but it's better if you move them to /usr/java/jdk1.3.1_02/. In fact I didn't move the files. The RPM package installed them there.
 
Old 01-23-2004, 02:10 AM   #4
DrGenetix
LQ Newbie
 
Registered: Jan 2004
Location: India
Posts: 4

Original Poster
Rep: Reputation: 0
Still Confused

Hii Again
Actually guys I wanted you people to give me complete way of doing whatever you suggest. You see I am very new to Linux and it has fasinated me alot as well but it discourages me to know that I am helpess without assistance so plz give me complete knowledge of what to do now, where to find the files from and how to find them !
I am expecting best answers now, coz this forum is gr8 I have browsed it a little before registering and found many useful answers and I beg for one more plz !
Thanx.
 
Old 01-23-2004, 02:51 AM   #5
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 11.10
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
ok, let's try to explain it better .

So, you want to install j2sdk-1_4_1_02-fcs-linux-i586.rpm package.

I guess you have already downloaded it.

1. install it as superuser.
type:
>su
>"password"

type:
rpm -i j2sdk-1_4_1_02-fcs-linux-i586.rpm

2. look for it:
it should be in /usr/java/jdkSomething
or try to locate it typing
locate jdk1.4. remember the path to it, something like
/usr/java/jdk1.4.1_02/
try doing cd /usr/java/jdk --and press tab key to see what is in there


3. add it to the PATH

In your home directory /home/yourUserName look for .bashrc file or create it.
emacs .bashrc

add a line like this:
PATH=/usr/java/jdk1.3.1_02/bin/:$PATH but instead /usr/java/jdk1.3.1_02 put the path where the java binary is: it should be /usr/java/jdk1.4.1_02/bin/

4.open a new terminal

now it should work if you type java.

good luck.
 
Old 01-24-2004, 05:16 AM   #6
DrGenetix
LQ Newbie
 
Registered: Jan 2004
Location: India
Posts: 4

Original Poster
Rep: Reputation: 0
Hii aizkorri
Your description I guess is the best I could have received, but still all goes in vain
I uninstalled it by
rpm -e j2sdk-1_4_1_06-fcs-linux-i586.rpm
and then did everything that u said.
I got confused in PATH making but then I opened emacs by
emas .bashrc and wrote
#PATH=/usr/java/j2sdk1.4.1_06/bin/:$PATH .bashrc
and saved it then i closed emacs then the terminal reopeed it typed
java
but still it says command not found.
Please can there be other problems if so how can they be eradicated. I want to install java so that I can chat online on yahoo.
Please Help
Take Kare
 
Old 01-26-2004, 02:49 AM   #7
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 11.10
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
hi,
you wrote this in the .bashrc file?

#PATH=/usr/java/j2sdk1.4.1_06/bin/:$PATH .bashrc

you should add only:

#PATH=/usr/java/j2sdk1.4.1_06/bin/:$PATH

for example you can try to execute it writing this in the terminal:

/usr/java/j2sdk1.4.1_06/bin/ if it works then there shouldn't be other problem.
I don't know what else can be wrong, I will post if something else comes to my mind.
 
Old 01-26-2004, 07:17 AM   #8
DrGenetix
LQ Newbie
 
Registered: Jan 2004
Location: India
Posts: 4

Original Poster
Rep: Reputation: 0
Hii
Thanx Alot I've successfully installed java afterall but when ever I try to access it's any file it say java.lang NoClassDefFound Error :S
Actually I want to chat online at yahoo chat so I need applet for that I was told to install j2sdk plz tell me am I right if I am then what's wrong :S
 
  


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
dependency problem by installing j2sdk-1_4_2-linux-i586.rpm linuxJaver Slackware 8 07-05-2003 12:04 PM
j2sdk-1_4_1_02-ux-i586-rpm.bin allelopath Linux - General 2 03-28-2003 05:47 PM
j2sdk-1_4_1_02 Issues GiveItAShot Linux - Software 5 03-19-2003 11:30 AM
gcc3.0-3.0.4--2mdk.i586.rpm installed but... aizkorri Linux - Software 2 11-09-2002 09:48 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


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