JAVA EXAMPLE PROGRAMS

JAVA EXAMPLE PROGRAMS

Publish Your Article Here

How to change Java (JVM) version in Mac OS?


Recently, I had an issue to change my default JVM version in my Mac machine. I want to provide steps to change java version with Mac OS. Use below command to check current default java version:

java -version

Download required java version and install it before proceed to further.

Open terminal, and run below command:

cd /System/Library/Frameworks/JavaVM.framework/Versions/

Check where your java is installed, in general, you can find your java installation in the below location:

/System/Library/Java/JavaVirtualMachines
/Library/Java/JavaVirtualMachines/

Find the right jdk path and create a softlink as shown below: Here I am making Java 7 as default version.

rm CurrentJDK
ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/ CurrentJDK

blog comments powered by Disqus

Java problems and solutions

  1. Unable to install Java 7 in Eclipse on Mac - Java 7 Mac OS issues
  2. How to change Java (JVM) version in Mac OS? - Java version Mac OS issues
  3. SunCertPathBuilderException: Unable To Find Valid Certification Path To Requested Target
  4. How to merge two jssecacerts files? - Merge key store files
  5. How to write Micro-Benchmark for java Hotspot?
  6. servlet-api-2.5.jar - jar not loaded - tomcat error
  7. How to exclude property files in a jar using Maven
  8. ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
  9. CGLIB is required to process @Configuration classes
  10. Git command to list conflicted files
Knowledge Centre
Preemptive scheduling Vs Time slicing?
Preemptive scheduling: The highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence.

Time slicing: A task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.
Famous Quotations
Tomorrow is often the busiest day of the week.
-- Spanish Proverb

About Author

Most Visited Pages

Other Interesting Sites

Reference: Java™ Platform Standard Ed. 7 - API Specification | Java is registered trademark of Oracle.
Privacy Policy | Copyright © 2017 by Nataraja Gootooru. All Rights Reserved.