Update to JDK 1.6 automatically
Hi,
When I build a server I want to have JDK 1.6 already installed. I selected the Sun JDK 1.6 package to be included, but the server still reports the 1.5 JDK. How can I have the updated JDK installed on boot up?
When I build a server I want to have JDK 1.6 already installed. I selected the Sun JDK 1.6 package to be included, but the server still reports the 1.5 JDK. How can I have the updated JDK installed on boot up?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I just took a look at the build log for (what I think is) one of your recent VMs and it appears that our build environment has been overly productive -- you have both 1.5 and 1.6 on the machine.
Version 1.5 can be found in the usual Debian/Ubuntu location (and is found directly in the default path). 1.6 is to be found in /opt/java. What you can do is try the following:
- Change JAVA_HOME to /opt/java
- Add a link to /opt/java/bin/java into the default path.
Hopefully this helps.
Nicholas
-
Inappropriate?Hi Nicholas
I see. Ok, here is the issue.
On startup we have Tomcat start up automatically for us (gjannece and rkoop set that all up for me in the beginning). Now our new application is Java 1.6 only.
How can I set the path to 1.6 on first boot and only then so that tomcat runs on 1.6?
Thanks.
Kind Regards,
Nitai
I’m thankful
-
Inappropriate?Hello Nitai.
There are 2 ways to accomplish what you want -- the quick and easy way and the right way. The easy way is for you to create a new package as part of your installation, and have that make the changes. The right way -- and I'm working on this right now, and have been for the last couple of hours -- is to fix the packages so they do the right thing.
I'll keep you updated on the progress for the 2nd option.
Nicholas -
Inappropriate?Hi,
2nd option is awesome :-) Not to but you under pressure, but we are withholding the release of our latest version because of this.... So any notice of this working would be much welcomed.
Thanks for all the info and your work. Love ElasticServer!
Kind Regards,
Nitai
I’m excited
-
Inappropriate?Hello Nitai,
I've completed updating some of the packages and things look good. One thing you might want to do is rebuild your private bundle with the Sun Java JDK rather than the JRE. If you don't then you'll end up with both, though only one is going to be operational -- the other will be a waste of disk space.
Hope this gets you to the next level.
Thanks,
Nicholas
I’m happy
-
Inappropriate?Hi Nicholas,
Thanks for the feedback. I will try it tomorrow morning immediately (it's midnight here now).
I just added the available JRE 1.6 from the available packages and did not see the JDK. Or do you mean to say that I don't need to add the 1.6 anymore?
Kind Regards,
Nitai
I’m thankful
-
Inappropriate?Just wanted to report that it works. I also set the JDK now.
Thanks for your support, much appreciated.
I’m excited
Loading Profile...


EMPLOYEE