LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-06-2004, 09:20 PM   #1
elamigo2004
Member
 
Registered: Apr 2004
Location: HELL
Distribution: Phlak / Knoppix / Puppy
Posts: 98

Rep: Reputation: 15
How do I install Java VM?


I don't get how do install Java VM. Someone help me. Now.
 
Old 04-06-2004, 10:03 PM   #2
wolfe2554
Member
 
Registered: Apr 2003
Location: denver co
Distribution: redhat9
Posts: 156

Rep: Reputation: 30
well now for your amusement or possible confusion just go to www.java.sun.com then download the rpm of java for linux. su to root unpack with j2reX.X.X.rpm.bin where x.x.x is the version then rpm -i j2rex.x.x.rpm. then add the path to java in your profile. find the java program. most likely /usr/java/j2rex.x.x/bin. edit your ~/.bash_profile locate the PATH variable. then add to the end of that file save and re login.
 
Old 04-06-2004, 11:04 PM   #3
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Re: How do I install Java VM?

Quote:
Originally posted by elamigo2004
I don't get how do install Java VM. Someone help me. Now.
Is that a question? Or a command. Lighten up, geez!

But seriously, if you want to know how to install java, hit the search button at the top of the page. Put in the search term "java" and put my username in the box on the right where it says search by user or whatever. I have answered this question before a few times and others have helped in this endeavor as well, in the same threads. I think there might even be a howto on this site (and the plugin is described on the "plugin help" page at www.mozilla.org)

Last edited by vectordrake; 04-06-2004 at 11:07 PM.
 
Old 04-07-2004, 05:42 AM   #4
geekzster
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu 10.10
Posts: 18

Rep: Reputation: 0
I wish that guy had asked his question without being a smartass. maybe then other newbs would be able to benefit from the answer without having to endure the same smartass answer...no offense....

and of course...when people GET their answer, do they come back and post their findings to benefit the community? NO. goddammit. selfish bastards.

anyway...
Im with you until this part:

Quote:
edit your ~/.bash_profile locate the PATH variable. then add to the end of that file save and re login.
sorry, I dont get that part, could you please explain?

I followed the directions on the java site to the letter, but when I go to test my jre I get the following error:
Quote:
This page contains information of a type (application/x-java-vm) that can only be viewed with the appropriate plug-in
for some reason I am thinking this means that my java vm is not installed properly?

and vectordrake...i did the search but this is the first page that comes up LOL.....just fyi

..gonna search some more....

Last edited by geekzster; 04-07-2004 at 05:52 AM.
 
Old 04-07-2004, 08:26 AM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Here's one that refers to the plugin problem, but its a bit vague.

Java install instructions:

get java. If you have a rpm-based distro, get the .rpm
install it.
usually, it installs to /usr/java/jxxx (jxxx being the java version)
to get the vm working, you can add it to your .bashrc.
Add this to your .bashrc file:

PATH=$PATH:/usr/java/j2re1..4.2_01/bin
JAVA_HOME=/usr/java/j2re1..4.2_01/bin
export PATH
export JAVA_HOME

exit the cnsole and open another. which java should return the path to yur java.

The plugin for your mozilla browser:
Make a soft link to the javaplugin in the java directory.
as root:
cd /usr/lib/mozilla-<whatever>/plugins
ln -s /usr/java/j<whatever>/plugins/i386/ns<whatever>/libjavaplugin_oji.so .
#be sure to include the end "." That means "here"
#be sure that the version of the plugin matches your mozilla (as in the version of gcc - ie 2.9 has to go with the older pre-1.4 browsers and gcc3.2 goes with newer ones)

If you use konqueror, you don't need to use a java plugin. It does the same thing as Opera and uses the jvm. Set the path to the jvm in the java/javascript section of your konqueror settings.

You should be good to go. If it works, tell the next person who asks. BTW, I got my info from this site and from the java installation instructions. The only hard one is the plugin for mozilla browsers. That used to be explained, but now seems to be only available on the mozilla plugin FAQ site.
 
Old 04-07-2004, 08:58 AM   #6
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
vectordrake : thank you thank you thank you...a thousand thank you's

This is been griefing me all morning, and your instructions helped me solve it.

Your are a master
 
Old 04-07-2004, 04:29 PM   #7
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Your turn now. I pass the torch to you (and everyone else who helped)

If you haven't seen "Pay it Forward", rent it. Heh heh. Glad to help.
BTW, I don't have an affero account, but if you want to donate on behalf of someone else because I helped, please do so (I got a lot of what I now know from the good people here)
 
Old 04-07-2004, 06:54 PM   #8
serzz
Member
 
Registered: Apr 2004
Location: Lpr/FINLAND
Distribution: Ubuntu Breezy 5.10
Posts: 39

Rep: Reputation: 15
#emerge java
I guess
 
Old 04-07-2004, 07:44 PM   #9
geekzster
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu 10.10
Posts: 18

Rep: Reputation: 0
sorry for the stupid question but...uhm...I dont seem to have a .bashrc file? am I missing something?

I noticed that I do have a profile in /etc/profile is this what I need to edit?

and if not, can I simply create a new .bashrc file, and if so..do i just run gedit, put the info in and then save it as a bashrc?

thanks...
 
Old 04-07-2004, 08:07 PM   #10
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
get to this link
http://java.mozdev.org/java_xpis/index.html

follow the instructions....you'll be done for sure.... (do it with mozilla, you'll get the VM plus the plugin installed)

and finally, don't be so rude... you aren't paying us for your help....even if you was I don't think you would be paying me enough to hear that in the way you said it
 
Old 04-07-2004, 09:00 PM   #11
geekzster
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu 10.10
Posts: 18

Rep: Reputation: 0
excuse me?

how was I rude?
 
Old 04-07-2004, 09:25 PM   #12
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Quote:
Originally posted by geekzster
excuse me?

how was I rude?
You weren't. I bet he was referring to the command given to we, the volunteers who help people out every day because we want to. Notice I helped anyways....

Are you sure you don't have a .bashrc in your /home/<whatever> directory?
If no, then, by all means, you can certainly make one. Its a config file. Do with it as you please. Here's mine, with the java path to the 1.5 beta! Heh heh.
Code:
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

PATH=$PATH:/usr/java/j2re1.5.0/bin
JAVA_HOME=/usr/java/j2re1.5.0/bin
export PATH
export JAVA_HOME
Mine was there when I loaded up, but the java-specific lines were added by me. Neat stuff can go in this file. You can make aliases for certain frequently used keystrokes, for example. A friend aliased ls -al with ls l for convenience, for ex.
 
Old 04-07-2004, 09:36 PM   #13
elamigo2004
Member
 
Registered: Apr 2004
Location: HELL
Distribution: Phlak / Knoppix / Puppy
Posts: 98

Original Poster
Rep: Reputation: 15
Smile

Peoples, I was joking when I "commanded" you. Geez, can't you take a joke?
 
Old 04-07-2004, 09:40 PM   #14
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Not a funny joke in a geek community. Forgiven. So, did you get java working?
 
Old 04-07-2004, 09:59 PM   #15
elamigo2004
Member
 
Registered: Apr 2004
Location: HELL
Distribution: Phlak / Knoppix / Puppy
Posts: 98

Original Poster
Rep: Reputation: 15
Ok, I downloaded the first download link thing and installed it, and rebooted Firebird. So, I went to a page that had some javascript on it, and it gave me that same annoying popup message saying "You need this plugin...". So, I went into the Options in Firebird, and to my suprise, it said that Java was enabled. What do I do now!!!
 
  


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 - Software

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