Thursday, October 11, 2012

Oracle JDK on Tata instacompute cloud

Other day I was trying to test the new Iaas cloud offering from Tata Communication- Instacompute.
 After I registered, I launched the cloud console, coming from AWS/Rackspace background I found it quite simple.









I added an UBUNTU10.04 LTS X64 template (kind of old huh!) instance and enabled SSH.
I wanted to deploy a basic java shopping cart app and hit it with Jmeter. But alas there was no
JDK available in the that particular Ubuntu template. I guess instacompute folks have used a strip
down version of Ubuntu. Anyway I used following code to fix the issue.
#add-apt-repository "deb http://archive.canonical.com/ lucid partner"
#apt-get update
#apt-get install oracle-java7-installer
Note that once Oracle JDK 7 installed you don't need to manually perform
update-alternatives, this will be done automatically.


Then I checked the installation 
root@ubuntu:~# java -version

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)



root@ubuntu:~# jps -l
7639 sun.tools.jps.Jps


My environment looks ready now.

 
  

No comments:

Post a Comment