LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-18-2003, 02:40 PM   #1
only1gameguru
Member
 
Registered: Sep 2003
Location: a magical place, on some remote place on the planet
Distribution: Mandrake 10.1 winxp pro, free bsd
Posts: 91

Rep: Reputation: 15
java


i have mandrake 9.1 and i am having a real hard time installing java help me plz
 
Old 10-18-2003, 02:57 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
http://java.sun.com/j2se/1.4.2/download.html

did you download the right package? try grabbing this one: "Linux RPM in self-extracting file". also decide whether you want to start learning how to write java programs or not. if so, grab the SDK package. if not grab the JRE package.

the file is a .bin file, so you'll have to extract it from the command line. open up a shell terminal and use the 'cd' command to navigate to where you downloaded the *.bin file and use this command:

./*.bin

use that only if you know for sure that's the only .bin file in the current directory. else use the whole filename.

an rpm will be extracted from that .bin file. just click on the rpm to install it. then you'll want to add java to your path. i use pathmunge in /etc/profile to make the path global.

Code:
# Path manipulation
if [ `id -u` = 0 ]; then
	pathmunge /sbin
	pathmunge /usr/sbin
	pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

JAVA_HOME=/usr/java/j2sdk1.4.2_01
pathmunge $JAVA_HOME/bin after
export JAVA_HOME
it's the last 3 lines you want to insert into /etc/profile. also change j2sdk1.4.2_01 to whatever the folder name is in /usr/java if using the JRE package.

then you'll need to create a link to the java plugin in all your browser's plugins folder. you can use the command line as root. i don't use the jre package so i don't know what the full correct path is to the java plugin for the JRE package. you'll have to dig around in your java install. all i know is the last part of the file path should be:
...../plugin/i386/ns610-gcc32/libjavaplugin_oji.so
 
Old 10-23-2003, 05:12 PM   #3
only1gameguru
Member
 
Registered: Sep 2003
Location: a magical place, on some remote place on the planet
Distribution: Mandrake 10.1 winxp pro, free bsd
Posts: 91

Original Poster
Rep: Reputation: 15
ah... i followed what was said above (to the word) and well at the
"./*.bin"
part i this
"bash: ./j2sdk-1_4_2_02-linux-i586-rpm.bin: Permission denied"
what do i do a bout that
 
Old 10-23-2003, 05:55 PM   #4
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 30
To the word... sure about being root??? - the permission thing sounds fishy
 
Old 10-23-2003, 06:13 PM   #5
Redbone981sl
Member
 
Registered: Jul 2003
Posts: 73

Rep: Reputation: 15
The user that downloaded the file has to do a chmod 777 (file name) then you should be able to install.
 
Old 10-23-2003, 07:18 PM   #6
only1gameguru
Member
 
Registered: Sep 2003
Location: a magical place, on some remote place on the planet
Distribution: Mandrake 10.1 winxp pro, free bsd
Posts: 91

Original Poster
Rep: Reputation: 15
that worked thank you Redbone981sl
 
Old 10-23-2003, 08:52 PM   #7
codec
Member
 
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304

Rep: Reputation: 30
remember to link this file to mozilla plugin directory:

/usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
 
Old 10-24-2003, 08:51 PM   #8
only1gameguru
Member
 
Registered: Sep 2003
Location: a magical place, on some remote place on the planet
Distribution: Mandrake 10.1 winxp pro, free bsd
Posts: 91

Original Poster
Rep: Reputation: 15
thanks but how would i get it into opera that file path doesnt work with opera
 
Old 10-24-2003, 09:23 PM   #9
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
in opera you set the path in File > Preferences > Multimedia. set the path in the Java path text box underneath the Enable Java button. but the path to the java plugin is not used by opera and will not validate. try a path like this:

/usr/java/j2re1.4.2_01/lib/i386
 
Old 10-25-2003, 03:09 PM   #10
only1gameguru
Member
 
Registered: Sep 2003
Location: a magical place, on some remote place on the planet
Distribution: Mandrake 10.1 winxp pro, free bsd
Posts: 91

Original Poster
Rep: Reputation: 15
that did not work either hmm...

does the opera require the java SDK or JRE and if JRE is required it tells me that "bash: {insertname}: Permission denied

chmod777 (filename) worked with SDK but not JRE

Last edited by only1gameguru; 10-25-2003 at 03:10 PM.
 
Old 10-25-2003, 03:13 PM   #11
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
what version of opera? the version 7's have a browse button where you can specify the java path it's looking for and you can validate that path with the validate button. 7.11 has a bug where even if you set a valid path, about > opera shows that java environment not installed. that's fixed in version 7.21. if you're browser plugins path in opera includes the plugins directory where you have a link to the javaplugin in your java install, then you should be fine.

Last edited by megaspaz; 10-25-2003 at 03:16 PM.
 
  


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
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 04:04 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 01:57 PM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 09:02 PM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 09:24 PM


All times are GMT -5. The time now is 04:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration