LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I Installed j2sdk-1_4_1_02-fcs-linux-i586.rpm but still I am not able to chat yahoo (https://www.linuxquestions.org/questions/linux-software-2/i-installed-j2sdk-1_4_1_02-fcs-linux-i586-rpm-but-still-i-am-not-able-to-chat-yahoo-137037/)

DrGenetix 01-21-2004 06:22 AM

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

born4linux 01-21-2004 06:35 AM

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.

aizkorri 01-21-2004 08:30 AM

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.

DrGenetix 01-23-2004 02:10 AM

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.

aizkorri 01-23-2004 02:51 AM

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.

DrGenetix 01-24-2004 05:16 AM

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

aizkorri 01-26-2004 02:49 AM

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.

DrGenetix 01-26-2004 07:17 AM

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


All times are GMT -5. The time now is 11:40 PM.