LinuxQuestions.org
Register a domain and help support LQ
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 06-12-2008, 06:11 PM   #1
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

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 1.5.0.15 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, 06:48 PM   #2
Uxinn
Member
 
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

http://java.sun.com/products/archive/


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

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 1.6.0.06, which is the original version installed on my system.

/usr/bin/java is changed:

Code:
[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

Code:
/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 10:45 AM. Reason: HTML instead of forum code
 
  


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


All times are GMT -5. The time now is 05:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration