Welcome to the most active Linux Forum on the web.
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 06-12-2008, 05:11 PM   #1
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
How to install a very specific subversion of Java (JDK/JRE)

Ubuntu 8.04 (upgraded from 7.10, not clean installed).

On my system, Java 1.6.0_06 is installed by default. In order to compile the software I need to for work, I need SPECIFICALLY 1.5.0_10 (beta2, I believe).

I've used apt-get to install 'sudo apt-get install sun-java5-jdk', in the hope that it would solve the problem, but it installed and my continuing invalid version in .class errors say that nope, it's not good enough.

Sun's website isn't helping. Is there a way, o wise LQ'ers, to tell Ubuntu that I want this very specific version of Java?
Old 06-12-2008, 05:48 PM   #2
Registered: May 2008
Location: Iceland
Distribution: Ubuntu Hardy
Posts: 47

Rep: Reputation: 16
Here you can find past releases for any platform.. but I can't see any old beta releases that are available for download :s

Did see 1.5.0_10 here, but like i said - no beta

hope this works out for you
Old 06-16-2008, 09:45 AM   #3
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Original Poster
Rep: Reputation: 30
Got it - thanks!

The next question is how to make ant (via Eclipse) use that version. Everytime I compile, it still uses, which is the original version installed on my system.

/usr/bin/java is changed:

[501:laura@alderaan ~]$ java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Server VM (build 1.5.0_10-b03, mixed mode)
[502:laura@alderaan ~]$ ll /usr/bin/java
lrwxrwxrwx 1 root root 22 2008-02-03 07:20 /usr/bin/java -> /etc/alternatives/java
[503:laura@alderaan ~]$ ll /etc/alternatives/java
lrwxrwxrwx 1 root root 42 2008-06-16 09:21 /etc/alternatives/java -> /home/laura/downloads/jdk1.5.0_10/bin/java
[504:laura@alderaan ~]$
Eclipse is set to use 1.5 compatibility and is started via

/home/laura/eclipse/eclipse -vm /home/laura/downloads/jdk1.5.0_10/jre/bin/javaw.exe
but there doesn't seem to be anywhere to set a specific java path. Screenshot of the persistent problem is here for clarification.

Thanks to anyone who can give a hint!

Last edited by rose_bud4201; 06-16-2008 at 09:45 AM. Reason: HTML instead of forum code


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
Help installing JDK JRE SuSE CS_Student_DrewU Linux - General 2 11-09-2007 08:33 PM
Trying to Install Java JRE carlosinfl Linux - Software 6 12-24-2006 01:20 PM
How do I install java jdk 1.5 on RHEL? daveb1040 Linux - Software 2 12-23-2006 04:23 AM
Howto install/use java(jre)? eras Linux - Newbie 5 04-12-2005 05:05 PM
How do I Uninstall Firefox, Jre, jdk, Mozilla TSynergy Linux - Newbie 2 11-18-2004 05:35 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 AM.

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