Download and install VirtualBox on your Mac.
Just keep in mind that VirtualBox (just like VMware Fusion) runs only on Intel-based Macs. Unless you plan on using Windows in a virtual machine on a daily basis, we recommend you start with the free solutions and consider purchasing a VMware Fusion license only if VirtualBox fails to meet your expectations and requirements.
The former is proprietary software that costs $199 for the Pro version, while the latter is open-source and available for free. The two most popular solutions at the time of writing this article are VMware Fusion and VirtualBox. To run Windows in a virtual machine on Mac, you need to install virtualization software. This way, you can easily access both operating systems at the same time and transfer files between them without restarting your Mac. In addition to installing Windows alongside macOS on your hard drive, you can also run Windows in a virtual machine directly from macOS. We recommend you familiarize yourself with Boot Camp Control Panel so that you can configure your keyboard, mouse, trackpad, and other hardware used with your Intel-based Mac. To switch between Windows and macOS, simply restart your computer and then press and hold the Option key during startup.
Follow the instructions to set up drivers and everything else necessary to dual boot Windows on a Mac computer.
To run a different version of Java, either specify the full path, or use the java_home tool: Java HotSpot(TM) 64-Bit Server VM (build 23.2-b04, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_06-ea-b13) If the installed version is 8u6, you will see a string that includes the text 1.8.0_06. You can determine which version of the JDK is the default by typing java -version in a Terminal window. It is possible for the version of the JRE to be different than the version of the JDK. When launching a Java application through the command line, the system uses the default JDK. There can be multiple JDKs installed on a system, as many as you wish. See "Note for Users of OS X that Include Apple Java 6 Plug-in". If you have not yet installed Apple's Java OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences app. Determining the Default Version of the JDK