Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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"
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.)
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.
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.
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.
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
*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..
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.