LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-30-2004, 07:09 PM   #1
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Rep: Reputation: 30
jvm installation/firefox/jalbum


I recently installed jvm to: file:/usr/java/j2re1.4.2_04/ following steps from sun's website. however, it doesn't seem to work. first of all, firefox still can't open up java applets

2nd, i tried installing jalbum (a web gallery program) and it says: sh ./jalbum.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

please let me know how to configure firefox and to install the PATH or whatever. thanks.

running mdk10
 
Old 06-30-2004, 07:23 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
OK,

You'll have to do:
ln -s /usr/java/j2re1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so <firefox installation folder>/plugins/
to get the java plugin working.

Then, edit /etc/profile and add the line:
pathmunge /usr/java/j2re1.4.2_04/bin after
after the line
pathmunge /usr/X11R6/bin after
to add the Java binaries folder to everyone's $PATH

Log out and log back in again, and everything should be set.

Dave

Edit:
The /etc/profile file may be diferent on your distro, if so, add:
:/usr/java/j2re1.4.2_04/bin
to the end of the line that begins with PATH, then log out and log back in. That will add the correct directory to your $PATH, but noone elses.

Last edited by ilikejam; 06-30-2004 at 07:29 PM.
 
Old 06-30-2004, 07:36 PM   #3
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ilikejam
OK,

You'll have to do:
ln -s /usr/java/j2re1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so <firefox installation folder>/plugins/
to get the java plugin working.

Then, edit /etc/profile and add the line:
pathmunge /usr/java/j2re1.4.2_04/bin after
after the line
pathmunge /usr/X11R6/bin after
to add the Java binaries folder to everyone's $PATH

Log out and log back in again, and everything should be set.

Dave

Edit:
The /etc/profile file may be diferent on your distro, if so, add:
:/usr/java/j2re1.4.2_04/bin
to the end of the line that begins with PATH, then log out and log back in. That will add the correct directory to your $PATH, but noone elses.
i didn't find any word named 'pathmunge'.

i did find:

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin"

should i tell it to delete the 'usr/X11R6/bin and replace it w/ path to java? i.e. :

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/java/j2re1.4.2_04/bin"

?
 
Old 06-30-2004, 08:07 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi again.

Just add :/usr/java/j2re1.4.2_04/bin to the end of the line so that it reads:
PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_04/bin"

(This isn't technically a perfect solution, but as long as the /usr/X11R6/bin directory remains, and there's no reason it shouldn't, then you'll be fine.)

Dave

Last edited by ilikejam; 06-30-2004 at 08:10 PM.
 
Old 06-30-2004, 08:23 PM   #5
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ilikejam
Hi again.

Just add :/usr/java/j2re1.4.2_04/bin to the end of the line so that it reads:
PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_04/bin"

(This isn't technically a perfect solution, but as long as the /usr/X11R6/bin directory remains, and there's no reason it shouldn't, then you'll be fine.)

Dave
thanks for ur help so far. however, i just realize that i can't seem to save the file in kwrite. gosh...didn't know java installation was so tough. any idea? thanks.
 
Old 06-30-2004, 08:43 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
You'll have to be root to save the file.

Try it with
su -
<pasword>
kwrite /etc/profile

Dave
 
Old 06-30-2004, 08:59 PM   #7
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ilikejam
You'll have to be root to save the file.

Try it with
su -
<pasword>
kwrite /etc/profile

Dave
here's a section out of the file.. i followed above instructions but it doesn't work. i can bring up the javal vm control panel by double click on the file java_vm. any other ideas? are u running java on ur system? i'm wondering if it's worth it going thorugh all this trouble.

by not work, i mean i still get:

"[root@xxxxx.-----.com Documents]# sh ./jalbum.bin {command to install jalbum}
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to"

as an aside, is there a way to change the info "@xxxxx.------in.com" (i made up that name since it contains my info in it) to something else? i.e. my terminal window displays my name@dhcp----.domainname.com and i'd like to change it if possible....or does it always display the network connection domain name? thanks again.

=============

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_04/bin"
fi

if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi

============

Last edited by webazoid; 06-30-2004 at 09:06 PM.
 
Old 06-30-2004, 09:03 PM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
You'll have to log out and log back in for these changes to take effect - when you log in the /etc/profile file is read, and sets your $PATH accodingly.

To see your current PATH, do:
echo $PATH
The output from that should contain /usr/java/j2re1.4.2_04/bin once you've logged back in.

Dave
 
Old 06-30-2004, 09:18 PM   #9
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ilikejam
You'll have to log out and log back in for these changes to take effect - when you log in the /etc/profile file is read, and sets your $PATH accodingly.

To see your current PATH, do:
echo $PATH
The output from that should contain /usr/java/j2re1.4.2_04/bin once you've logged back in.

Dave
HI,

I Logged, out, then logged back in, but it didn't work. i then turned off computer and logged back in but i still didn't work...upon typing $path, this is what i get:

bash: /usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/home/mycomputer/bin: No such file or director


---

if it helps any, i typed in:

"java -version
java version "1.2"
gij (GNU libgcj) version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

dunno why it's 1.2 rather than the one i thoguht i installe.d

Last edited by webazoid; 06-30-2004 at 09:22 PM.
 
Old 06-30-2004, 09:24 PM   #10
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
OK, edit ~/.bash_profile, and add:

:/usr/java/j2re1.4.2_04/bin

to the end of the line that begins with PATH, then log out and log back in. That will add the correct directory to your $PATH, but noone elses.

Dave
 
Old 06-30-2004, 09:44 PM   #11
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
can you echo $JAVA_HOME

you need a JAVA_HOME variable set also

in your .bash_profile add.

JAVA_HOME=/usr/java/j2re1.4.2_04/ export JAVA_HOME

Than in you PATH line you can just add

PATH=$JAVA_HOME/bin export PATH


then source your profile

. .bash_profile

*edit* also it will search you path in order from begining to end so if your path is PATH=/home/bin:/usr/local/bin:$JAVA_HOME/bin
If you have java installed on you system already and in link is in /usr/local/bin it will use that befor it uses you "new install" of java..

Last edited by init; 06-30-2004 at 09:47 PM.
 
Old 06-30-2004, 10:00 PM   #12
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ilikejam
OK, edit ~/.bash_profile, and add:

:/usr/java/j2re1.4.2_04/bin

to the end of the line that begins with PATH, then log out and log back in. That will add the correct directory to your $PATH, but noone elses.

Dave
great! finally worked in installing jalbum (java installation worked and everything).

however, java w/in firefox still doesn't work.

i tried the firefox instructions again and got the message:

ln -s /usr/java/j2re1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /home/mydocument/Documents/firefox/plugins
ln: `/home/mydocument/Documents/firefox/plugins/libjavaplugin_oji.so': File exists

init:

would changing ilikejam's method to yours making any difference? it basically works so far w/ at least installing the java application but firefox still refuses to display java. (though i notice that java is extremely sluggish cuz it took me like 3 minutes to generate an album w/ 7 pictures compared to 20-30s usually w/in xp.
 
Old 06-30-2004, 10:19 PM   #13
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
nope, there are several ways to install java the way i described is more user specific. I would just remove that link and try to link it again. ls -l on the dir to make sure the link is pointing to the correct file.
 
Old 06-30-2004, 10:30 PM   #14
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Are you sure you're running the copy of firefox that's installed in /home/mydocument/Documents/firefox ?

If there's another copy installed, it could be that, that you're running, so the plugin is not being used.

Dave
 
Old 06-30-2004, 10:48 PM   #15
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ilikejam
Are you sure you're running the copy of firefox that's installed in /home/mydocument/Documents/firefox ?

If there's another copy installed, it could be that, that you're running, so the plugin is not being used.

Dave
i did a search and that was the only copy. when i checked the firefox/plugins folder, i found it was a 0-byte file. i then copy/pasted the libjavaplugin_oji.so from /usr/java/... (270kb) to the firefox folder and now firefox just closes whenever i try to run a java applet. oh well... that's all for tonite. i might give it a try again tomorrow. thanks anyway.
 
  


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
FireFox 1.0.4 Installation thinhla Mandriva 7 07-11-2005 05:25 AM
Firefox Installation hubabuba Slackware 8 04-08-2005 12:54 PM
Firefox Installation foxy123 SUSE / openSUSE 5 12-20-2004 04:03 AM
Firefox 0.9 installation napalm_101 Linux - Software 21 10-27-2004 10:41 PM
Firefox installation xeo196 Linux - Newbie 11 10-25-2004 06:06 PM

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

All times are GMT -5. The time now is 05:40 AM.

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