Skip to main content
replaced http://askubuntu.com/ with https://askubuntu.com/
Source Link

See 'air-dex' example on this post: http://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdkhttps://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk . Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 

See 'air-dex' example on this post: http://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk . Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 

See 'air-dex' example on this post: https://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk . Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 
added 12 characters in body
Source Link
djangofan
  • 4.3k
  • 5
  • 23
  • 19

Here is a blog post I made that shows a detailed See 'air-dex' example of installing Java and setting the default with alternativeson this post: http://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk . Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 

Here is a blog post I made that shows a detailed example of installing Java and setting the default with alternatives. Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 

See 'air-dex' example on this post: http://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk . Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 
Blogpost link is a dead blogspot page. Changed to be the version on the guy's website, link found through his SO profile.
Source Link

Here is a blog post I made that showsHere is a blog post I made that shows a detailed example of installing Java and setting the default with alternatives. Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 

Here is a blog post I made that shows a detailed example of installing Java and setting the default with alternatives. Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 

Here is a blog post I made that shows a detailed example of installing Java and setting the default with alternatives. Note: sometimes people install Java JDK's into '/usr/lib/jvm', and as you can see in the output on my blog post, the system came with default JVMs in this location, but personally I don't recommend that for a JDK. Maybe I would choose '/usr/lib/jvm' if it was a JRE I was installing. If you wanted an alternative location for JDKs and JREs, I would choose either:

 1. /usr/java/ 2. /opt/java/ 

If I were comparing to windows, I might say:

JDKs: /usr/java = C:\Java JREs: /usr/lib/jvm = C:\Program Files\Java Alt: /opt/java = E:\Java 
added 158 characters in body
Source Link
djangofan
  • 4.3k
  • 5
  • 23
  • 19
Loading
Source Link
djangofan
  • 4.3k
  • 5
  • 23
  • 19
Loading