Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-07-2006, 01:23 AM   #1
LQ Newbie
Registered: Aug 2004
Posts: 29

Rep: Reputation: 15
Global installation of Sun Java

The scenario:

I recently switched from Fedora 3 to Ubuntu. I installed Sun Java RE. I later installed the programs I use (Azureus, Limewire most notable) which run in Java. I noticed that Azureus was running with gij (GNU libgcj) and ran horribly. I added the correct Java path for Sun's Java RE to the Azureus configuration file. It ran beautifully.

The question:

Is there a way to set up Sun's Java as the global Java RE on my system?

Here's my current setup:

Standard 32 bit PC
2.6 GHz
512 MB RAM
latest stable stock Ubuntu Linux
latest Java RE

Bash response:

/# java -version

gij (GNU libgcj) version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

Last edited by Crashputer; 05-07-2006 at 01:25 AM.
Old 05-07-2006, 03:41 AM   #2
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux Mint 19.1
Posts: 99

Rep: Reputation: 16
I found I had to de-install the non-Sun java packages to get the Sun Java Runtime Environment working properly. So I guess you could try the same.
Old 05-07-2006, 06:28 PM   #3
Registered: Aug 2004
Location: Israel
Distribution: LMDE 5
Posts: 271

Rep: Reputation: 34
I installed Java from Sun's .bin and added this to my /etc/profile:
export JAVA_HOME
export PATH
Works. Just change "/usr/local/jre1.5.0_06" to where you installed it.
Old 05-07-2006, 07:20 PM   #4
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Add the following line to /etc/apt/sources.list:
deb sarge non-free
install the jdk
apt-get install j2se1.4;
Select the default java virtual machine to use :
update-alternatives --config java
Type the number providing /usr/lib/j2se/1.4


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
Sun Secure Global Desktop installation issues. pdeman2 Linux - Software 3 07-05-2010 07:31 PM
sun java 1.5 shabbirhai Programming 2 02-26-2006 01:28 PM
Blackdown java and offical sun java linuxmandrake Programming 5 12-25-2005 04:14 AM
Sun Java confidential007 Linux - Software 6 05-30-2004 01:47 PM
sun Java xdan64 Linux - Newbie 3 09-05-2003 08:14 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration