LinuxQuestions.org
Help answer threads with 0 replies.
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 03-29-2006, 01:04 PM   #1
Nathan1993
Member
 
Registered: Jan 2005
Location: OH, USA
Distribution: Ubuntu 6.10 on desktop, debian etch on laptop
Posts: 69

Rep: Reputation: 15
Sun & Blackdown Java on the same computer?


I am a noobie, and in my confusion I believe I have installed Sun & Blackdown java on the same computer! I am using Ubuntu Breezy Badger with all the latest updates. Does anyone know how I can check if I have them both, and if I do have them both, how to uninstall the Blackdown verison?

I have nothing against the Blackdown version, I would just rather have Sun's *real* Java than Blackdown's version. Also, Java is working fine in applets, programs, and when I type "java -version" I get...

java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)

Thanks in advance!
 
Old 03-29-2006, 02:25 PM   #2
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Rep: Reputation: 30
It might not be necessary to uninstall the blackdown version ( though I agree it would be preferable ) but operationally, it may be enough to update the PATH environment variable. It looks like right now it includes the bin directory for black down. You will want to remove that directory from the PATH listing and replace it with the bin directory for the java install by Sun. Look inside the directory
/usr/java for a subdirectory j2sdk<version>. That I believe is where the 1.4.2 version would be installed if the rpm was used.
 
Old 03-29-2006, 03:28 PM   #3
Nathan1993
Member
 
Registered: Jan 2005
Location: OH, USA
Distribution: Ubuntu 6.10 on desktop, debian etch on laptop
Posts: 69

Original Poster
Rep: Reputation: 15
There is no /usr/java directory. Does that mean I do not have Sun's Java installed?

Grtz
 
Old 03-29-2006, 07:11 PM   #4
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
You can have any number of Java versions and types installed. I personally keep version 1.3, 1.4, and the latest 5.0 around.
Basically, it comes down to your JAVA_HOME environment variable, and where the java and javac binaries are pointing.
To get a feel for how your system is setup now, try (at the command line):
Code:
echo $JAVA_HOME
which java
which javac
Let's say that JAVA_HOME points to the Blackdown JVM (which is likely), you can simple edit .bashrc (in your home directory) and make JAVA_HOME point to where you want.
The other possibility is that java / javac is a link to the Blackdown JVM. You can tell this if the above "which" commands display something like:
Code:
javac -> /usr/share/blackdown/bin/javac
In this case, you can make a new link to the Java version you want, and maybe a different name for the Blackdown JVM:
Code:
ln -s /usr/share/java/jdk1.4.2/bin/javac /usr/local/bin/javac
ln -s /usr/share/blackdown/bin/javac /usr/local/bin/javac-blackdown
I hope you get the general idea here, basically you either reset your JAVA_HOME variable, or change which java binaries are called. Let me know if you need more help.
 
  


Reply


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
Blackdown java and offical sun java linuxmandrake Programming 5 12-25-2005 03:14 AM
why use Blackdown over Sun jalerark Linux - Software 8 10-28-2005 06:13 PM
Blackdown Java raysr Linux - Software 10 12-15-2003 02:33 PM
Blackdown Java Help! saiz66 Slackware 6 06-24-2003 11:30 AM
RedHat 8 and Blackdown Java MarcRJacobs Linux - Newbie 21 04-11-2003 02:38 PM

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

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