LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-30-2004, 10:54 PM   #1
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Rep: Reputation: 30
Unhappy Java install


......help...please.....thinking of going back to microsoft....

I have for the past month been sifting through the different treads on how to install something, anything...nothing has worked so far. My goal is to install limewire, which means that I need to install Java first, but how...nothing is working... I can not seem to use the Konsole or any of its functions.

I am using Mandrake 9.2 and I think that I have everything downloaded.

Thanks,
EEK.
 
Old 03-30-2004, 11:22 PM   #2
coder_ma
LQ Newbie
 
Registered: Mar 2004
Distribution: redhat9
Posts: 18

Rep: Reputation: 0
do u mean u have probem with java installing?
download jre or jdk from sun first(for linux).it always be a .bin file.
then
chmod +x jre1.4....linux....bin
./jre1.4...linux..bin
show u java copyright or something....
.....(Yes/no):yes
then u 'll get aother tar file (i am not sure...)...
go ahead..
 
Old 03-30-2004, 11:28 PM   #3
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Okay, I have the:

j2re-1_4_2_04-linux-i586-rpm.bin

is this the correct one?

I have this one, though I have no idea what to do with it.

Really, thanks for helping out...I am having a hard time with this.....

EEK
 
Old 03-31-2004, 09:00 AM   #4
elitecodex
Member
 
Registered: Feb 2004
Location: MD
Distribution: Fedora 9
Posts: 129

Rep: Reputation: 15
I dont think you need the rpm... but it should work just the same.

Just execute the file (make sure you have +x permissions already) and you get some copy right bs. Agree, then it decompresses it all into a folder... normally called j2sdk then the version follows it.

Thats it... now, what I did to make my life easier was create a script in my bin (inside of my home directory) directory called "java". Mandrake seemed to have automatically picked this up and looks in there. The scirpt looks something like this...

Code:
#!/bin/sh
/path/to/java/bin/java $@ &
That way you can execute java with any arguements you give it and get your console prompt back immediately (the & symbol puts it in the background). Make sure this file is +x as well.

Then to run LimeWire... just type, in the konsole:
Code:
java -jar LimeWire.jar
If you put the script above in the right place, it will execute with no problems (Im running it now on MDK 10).

Hope this helps!!

Last edited by elitecodex; 03-31-2004 at 09:01 AM.
 
Old 03-31-2004, 09:39 AM   #5
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Thanks for looking out...

Humm, when I execute the icon ( which I think is double click ) nothing happens. If I try to open it via the right mouse button it gives the option to: open, open with....and the rest. Though again, nothing happens.

This one seems a bit silly to ask, but, what is x+ permission and how do I know if I have it or not?

Thanks for helping,
EEK.
 
Old 03-31-2004, 10:52 AM   #6
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
It's the execution permission. You need it to be able to run the file. Right click and select properties. From the second tab choose IS executable and click on OK.
 
Old 03-31-2004, 11:30 AM   #7
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Hello, ( thanks for helping! )

Okay, I right clicked and went to the second tab (Premissions) and found a list EXEC corrosponding to: User, Group and Others. I just checked them all and then hit Okay.

I then followed the instruction as posted, though, again, nothing happens. It just acts like it is going to open, and then.....nothing. When I right click on the icon:

j2re-1_4_2_04-linux-i586-rpm.bin

I just get the same options as before: Open, Open with,.....

Please help, I don't send me back to microsoft, I'm not a bad person....
Thanks,
EEK.
 
Old 03-31-2004, 11:29 PM   #8
coder_ma
LQ Newbie
 
Registered: Mar 2004
Distribution: redhat9
Posts: 18

Rep: Reputation: 0
1st:
open ur terminal such as gnome-terminal or rxvt... you will see a windows
fill with black chars and blink cursor like this:
[coder @MMM~]$|
2nd:
locate to dir which have ur "j2re-1_4_2_04-linux-i586-rpm.bin" file downloaded before. such as :
[coder @MMM~]$cd downloads
3rd:
[coder @MMM~/downloads]$chmod +x j2re-1_4_2_04-linux-i586-rpm.bin
to make the bin file executable.
4th:
[coder @MMM~/downloads]$./j2re-1_4_2_04-linux-i586-rpm.bin
then you'll see the java copy right info ,just hit spacebar to scroll
when u get 100% loaded u'll see some words like this:
do u agree?[yes/no]yes -->input 'yes'
then u'll get another file named j2re-1_4_2_04-linux-i586.rpm
just try this to confirm:
[coder @MMM~/downloads]$ls j2re*.rpm
then install this rpm package as root
su root
password input..
[root @MMM~/downloads]#rpm -ivh j2re-1_4_2_04-linux-i586.rpm
ok now.
try this
[root @MMM~/downloads]#java
if you get "command not found"
try :
[root @MMM~/downloads]#whereis java
it will show u java dir.
then using abs path try again.

====================
sorry for my poor english.
gook luck.
 
Old 03-31-2004, 11:32 PM   #9
coder_ma
LQ Newbie
 
Registered: Mar 2004
Distribution: redhat9
Posts: 18

Rep: Reputation: 0
you can also add me a friend by msn(also a email address):
mahongxi@hotmail.com


gook luck
 
Old 04-01-2004, 12:56 AM   #10
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
http://www.mandrakeuser.org/docs/utils/ujava.html

follow it and modify what has to be modified or adapted.

if you still have pbs go back to microsoft because if you are not willing to read anything or get some documentation about it or know how to use a search engine, it is useless to use linux and you are not obliged to.

Last edited by mrcheeks; 04-01-2004 at 12:58 AM.
 
Old 04-01-2004, 07:43 AM   #11
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
If you have access to the MandrakeClub, there are two RPMs in the commerical packages section for v9.2:

http://www.mandrakeclub.com/download...-1mdk.i586.rpm
http://www.mandrakeclub.com/download...-1mdk.i586.rpm

These end in an RPM extenstion, so you can just double-click them, enter root password, and be on your way. Both those packages came with my power pack retail copy though, and j2re was installed by default.

Last edited by Crito; 04-01-2004 at 07:45 AM.
 
Old 04-01-2004, 01:00 PM   #12
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Okay, sounds good to me. I'll give it a spin.


Thanks for helping out, really.

EEK
 
Old 04-01-2004, 06:32 PM   #13
PDR60
Member
 
Registered: Aug 2003
Location: Oakland, TN
Distribution: Debian, Kubuntu
Posts: 257

Rep: Reputation: 30
I have a very easy How to for most of the user software for 9.2 its really not that hard as 9.2 is aged enough and pretty mature. Check out the web browser how to and I think you'll be ok. www.linuxloader.com
 
Old 04-02-2004, 06:10 AM   #14
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Damn, you people are good.................................

EEK
 
Old 04-03-2004, 02:11 AM   #15
g452
Member
 
Registered: May 2003
Location: tswane
Distribution: Slackware 9.1
Posts: 113

Rep: Reputation: 15
java

i don't know if this will help cause i use slackware - - anyhow i just extract my java-version.bin into /usr/lib/j2re-version and then i make a j2re.sh in my /etc/profile.d/ folder and inside i put the following :

=====CODE=====================
#!/bin/sh
export MANPATH="$MANPATH:/usr/lib/j2re1.4.2_04/man"
export PATH="$PATH:/usr/lib/j2re1.4.2_04/bin"
=====CODE=====================

and that is it

hope it helps a bit too

made a small tatical error - java is installed right with stuff above but never bothered seeing if all works - tried some java apps in netscape and it keeps asking for application/x-java-vm - so i guess i have some work left before my java is completed - anyone have an idea - all places i looked said u must make a symlink to a .so file wich i did and still it isn't working - any ideas whot i did wrong ?? or how to get it to work ??

thanx

Last edited by g452; 04-03-2004 at 04:06 AM.
 
  


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
java does not install in opt but install in usr bbmak Linux - Software 6 10-02-2005 11:13 PM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
Java Install marlaina1 Linux - Software 5 03-22-2004 11:58 AM
Java Install Please Help!!! unwrittenlaw Linux - Newbie 22 11-08-2003 11:42 PM
Help with java install (again...) MidgetmanUK Linux - Newbie 3 10-04-2003 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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