Reputation: 85
I am new to OpenJDK. Should I install OpenJDK in Ubuntu or is OpenJDK already available in Android Eclipse that I am presently working in? If no, then how do I go about installing the OpenJDK in Ubuntu. Please help me.
Upvotes: 0
Views: 3044
Reputation: 24922
You may also use the command sudo update-alternatives --config java
to see java alternatives currently installed on your machine.
Hope this helps. Good luck!
Upvotes: 0
Reputation: 13364
You can install openjdk by running sudo apt-get install openjdk-7-jre
, (jdk 7). However if you have a working eclipse installation for Java programs chances are that you already have java installed on your machine.
Now to verify it there are following three ways:-
Hope it helps!!!
EDIT 1 Eclipse is an IDE which helps you in developing applications in various programming languages and Java is just one of them, when you install eclipse it checks whether you have any installed JREs in your system. If the installer can't find any JRE than it gives you a message for that. If it finds any JRE than it takes the path to that JRE and configures itself accordingly.
On the other hand OpenJDk is The place to collaborate on an open-source implementation of the Java Platform, Standard Edition, and related projects. You also have sunjdk (oracle's implementation) and many more. For more information about openJdk refer the link.
One more thing you can install multiple JREs in your machine and choose which one you want to use for any project.
Upvotes: 1