I ' ll start coding with JEE soon. Product Environment adopts Oracle + WebLogic in Linux, technology adopts EJB3 and JPA. So I ' m going to set a development environment in my own computer with them.
For IMac installing JDK, Eclipse or Maven won't is problem, but installing Oracle seems a impossible mission, now Virtu Albox become a very good choice.
Install VirtualBox
Download from https://www.virtualbox.org/, nothing special on installing. But it ' s really a magic tool.
Create a new Virtual machine for Oracle Linux
You ' d better to download a Oracle Linux 7 installer ISO file before starting this step. Https://edelivery.oracle.com/linux. You need specify a installer ISO file during the process of creating virtual machine.
1. Name Your virtual machine, choose the OS you'll install later and set the size of memory.
2. Set the size of virtual machine's "hard disk". Click OK The virtual machine would be created.
You still need change ' s several basic settings. Select the virtual machine just created, click "Settings" button on the top of the VirtualBox Manager.
1. Specify the installer ISO file which would be a installed onto this virtual machine later.
Storage-click CD ROM icon on right (Storage Tree)-click CD ROM icon on left (Attributes)-Choose a Vir Tual CD/DVD disk File--and Select the Oracle Linux installer which you downloaded in advance.
2. Enable network connection. This virtual machine would be assigned a IP address of you can access from your computer after OS have been installed. For example, you can ssh this virtual machine.
3. All is done, click OK.
Install Oracle Linux 7 in the Virtual machine
1. Select VirtualBox created former, click "Start" button on top
* *-+ Command can move your mouse cursor out of the the installation screen.
2. Software Selection
3. Enable Network Connection
4. Reboot after complete installation, still need do some basic configurations.
- Enable Kdump
- Set up software update. I select "No, I prefer to register at a later time." Because I don ' t purchase any Oracle product ...
Rmove OpenJDK
OpenJDK is the default JVM in Oracle Linux. I see quite a lot of posts say simply Run command "yum remove java*", but I'm not sure if this is secure because WILDC ARD is used, so it seems not really. I ' m going to the use of software GUI to remove it. After you login to Oracle linux-->start menu-->system tools-->software, search openjdk then remove packages.
Install Oracle JDK1. Download 64bit JDK archive file2. Extract it into/usr/lib3. ADD java_home variable into/etc/profile. This JVM was enabled for all the users of this VM.
Export Java_home=/usr/lib/jdk-1.8.0-xxxexport path= $PATH: $JAVA _home/bin
Install Oracle Linux 7 on Oracle VirtualBox