LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2016, 02:37 PM   #1
sameerkhanpqr
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
Java versions in Unix


Hello, Kindly help me in below queries :

1. Can we have more than one installation of JVM in a single unix machine ?

2. If yes, then command to findout all the versions of JVM available ?

3. what would be the result of java -version in such a system ?

4. What do we have to set for JAVA_HOME in such a system ?

5. how to find out the vendor of JAVA of all the versions ?

6. Why we are still using OpenJDK when there is OracleJDK available ?

7. jps command when ran shows not found ???

8. How can i point my application to use a specific java version in such a system ?

9. Among all these versions in a single machine, will there be only one active version of java and rest all will be idle ??
 
Old 03-14-2016, 03:20 PM   #2
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,061

Rep: Reputation: Disabled
Answered within the quote after the actual question:
Quote:
Originally Posted by sameerkhanpqr View Post
Hello, Kindly help me in below queries :

1. Can we have more than one installation of JVM in a single unix machine ?
Yes

2. If yes, then command to find out all the versions of JVM available ?

which java
or
whereis java


3. what would be the result of java -version in such a system ?
Give it a shot and find out for yourself, or I do not understand this question. Pls rephrase the question.

4. What do we have to set for JAVA_HOME in such a system ?
the actual path to javac

5. how to find out the vendor of JAVA of all the versions ?
refer to question 2

6. Why we are still using OpenJDK when there is OracleJDK available ?
Because OpenJDK is open source whereas OracleJDK is not open source.
OpenJDK actually came after OracleJDK which was written and had been in circulation long before OpenJDK came into being.

Look what the search engine has to say about it for further information

7. jps command when ran shows not found ???
refer back to question 4 or question 2

8. How can i point my application to use a specific java version in such a system ?
absolute path

9. Among all these versions in a single machine, will there be only one active version of java and rest all will be idle ??

they all lay dormant until needed, then it all depends on how you deal with it in setting it up to let everything that will be using all of these different versions of Java otherwise it will totally confuse the system or application trying to use it actually if you do not provide it with the proper information to operate under such conditions. due to deprecated function calls that maybe within the code, methods typed the same as well. You're better off keeping it updated due to deprecated functions unless otherwise specified from a vendor.

Last edited by BW-userx; 03-14-2016 at 03:44 PM.
 
  


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
To install java in solaris sparcv9 and removing the preinstalled java versions saurabh593 Solaris / OpenSolaris 6 06-14-2012 02:43 PM
migrate /etc/shadow from Solaris 10 to other Unix/Linux OS Versions qs_tahmeed Solaris / OpenSolaris 4 06-21-2010 05:31 PM
LXer: Microsoft to drop Linux, Unix versions of enterprise search LXer Syndicated Linux News 0 02-05-2010 06:30 PM
Account name length in various versions of linux/unix? davidstvz Linux - Newbie 2 08-22-2008 01:44 PM


All times are GMT -5. The time now is 12:55 AM.

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