LinuxQuestions.org
Review your favorite Linux distribution.
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 09-23-2004, 05:40 AM   #1
kevcart3
LQ Newbie
 
Registered: Jun 2004
Location: USA
Distribution: Fedora Core 2
Posts: 15

Rep: Reputation: 0
Sun's Java VM (HOWTO)


Okay, I just recently had some problems with installing LimeWire and the VM in Firefox, so I thought I would post a HOWTO on exactly how to get the VM up and working under FC2 and other Distros with RPM support.

Requirements:
--------------------
1. You need to have at least a small knowledge on working the terminal and some basic commands that you will use.


First off, you will need to download the RPM from Sun's web site (http://www.java.com)
The file will be called something similar to j2re1_4_2_05-linux-i586-rpm.bin. After downloading the package for the VM, put it in a place where you can find it from the terminal such as your home directory.

Next, open a terminal session and do an SU to become root and enter the root password.
$ su
$ password: ******
$ cd /home/kevin

Navigate to the directory using cd where you saved the RPM (EX: cd /home/kevin/)

Use the following command to run the self-installer.

$ ./j2re1_4_2_05-linux-i586-rpm.bin (or whatever the package name is)

Then, read the agreement, pressing space to scroll down until you are at the end of the document. Type "yes" to agree to the license agreement. This will create an actual RPM in the same directory that you downloaded the RPM Binary.

After agreeing to the license, you will verify you know the name of the file using the dir command. The RPM should be called j2re1_4_2_05-linux-i586.rpm or similar according to the version you have downloaded.

Now, you are going to want to install the RPM for the VM, still as root, type the following command:

$rpm -ivh j2re1_4_2_05-linux-i586.rpm (or whatever the name of the fiile is)

If this is done correctly you should see something saying that it was completed with 100%.


CRUCIAL PART OF THE PROCESS:
---------------------------------------------------

I have had a lot of problems with making the Java VM work under FC2, because when you install the RPM, it actually doesn't make it work, it just installs it. So here is the steps to make the VM the default java vm for the OS:

First, make sure to have a terminal open and logged in using the SU command by entering the root password.

Then verify the directory that you have java installed under by doing this:

$ cd /usr/java
$ dir

You should see that there is a directory called j2re1.4.2 or something similar. If not, try this installing the RPM again, maybe something didn't go right.

Then you will have to remove all the default java associations by doing the following:

$ cd /usr/bin
$ rm java javac jar

If you get an error in removing any of the files java, javac, OR jar, it's okay, it's just to make sure you remove them. You will have to confirm to remove these files by typing a y at the prompt.

Next, you will have to create a link between the newly installed VM and the defaults for FC2 java vm by using the following command:

$ cd /usr/bin
$ ln -s /usr/java/j2re1.4.1_01/bin/java java

Be sure to replace the /usr/java/j2re1.4.1_01/bin java with whatever version you are running, but it should always point to the /bin/java directory under that folder.

Now, you should have a clear link between the two files so that you can install programs that require a Java VM installed.

If you are wanting to install LimeWire, enable java in Firefox or Mozilla, then read further, otherwise, Congradulations, you now have Sun's Java VM installed and configured.

LimeWire Install Instructions:
---------------------------------------

Since you have already installed the Java VM, all you should need to do now is navigate to the directory where you downloaded the Binary and type the following command:

$ sh ./LimeWireLinux.bin

After that, the program should install normally.


Firefox Instructions:
--------------------------

Navigate to the directory where Firefox is installed using the cd command as root in a terminal. Then you will see another directory called plugins, go to this directory and type this command while in the ./plugins directory of your firefox installation:

$ ln -s /usr/java/j2re1.4.1_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

This will create a link from the java vm to Firefox plugins, to test the browser, simply go to a web site that requires java installed, such as http://www.java.com

Mozilla Instructions:
--------------------------

To install the java vm for mozilla, simply use the Firefox instructions, with the exception of the directory where mozilla is installed. Then go to the ./plugins directory as above and create a link using the command above.


This concludes my HOWTO on installing Sun's Java VM, if you have any questions, feel free to email me at kevcart3@gmail.com.

Thanks,
Kevin Carter
 
  


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
DISCUSSION: HOWTO: Install Sun's Java VM in Fedora Core 2 kevcart3 LinuxAnswers Discussion 9 10-28-2005 02:34 PM
Breezy: How to update from java 1.4.2 to sun's 1.5? kenneho Ubuntu 2 10-16-2005 06:09 AM
Sun's Java Desktop ratings? cucolin@ JDS 12 11-02-2004 09:42 AM
running sun's java 1.3 on mandrake agnel0 Programming 3 04-08-2003 02:06 PM
why Sun's Java VM sucks bandofmercy Linux - Newbie 2 12-16-2002 07:05 AM

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

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