TurnKey Linux Virtual Appliance Library

Sun Java JRE 1.6.0 on Turnkey Linux 12.0 (redmine appliance)

Hi, how do I install Sun Java JRE 1.6.0 on a Turnkey Linux 12.0? I am interested in adding Java to the Redmine appliance downloaded from Turnkey, but can't get through... All I'm getting is "Unable to locate package" and "has no installation candidate" in different variations.

Please help! What is the working sequence of commands to get JRE on the appliance?

Eric (tssgery)'s picture

TKL 12.0 is based upon Debian Squeeze

Since TKL 12.0 is based upon debian squeeze, you can foillow the same instructions as for Debian.

 

I found these instructions and they're pretty good: http://codetalk.code-kobold.de/?p=289

 

1) Edit /etc/apt/sources.list and add the "non-free" repository

2) Update apt so it sees the new packages

apt-get update

3) make sure that apt now sees the new packages

apt-cache search sun-java6

4) Install whatever packages you need

apt-get install sun-java6-bin sun-java6-jdk

5) Make sure that the system knows to use sun java instead of openjava

update-java-alternatives -s java-6-sun

6) Add JAVA_HOME environment variable if desired


Thanks! That did work for me.

Thanks! That did work for me.


Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)